HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] Faxmail + notify (solved, now on to modifying the notify script)



That indeed fixed the issue. Thank you for your help. Another note is that,
when installing gawk on bsd, it isn't in the same dir as nawk

Now on to the next task. Everyones favorite. 

Modifying the notify script.
Goal-> to have the fax be inline text. Shouldn't be to, to hard, but if
there is an example laying around please feel free to share

-Dan



-----Original Message-----
From: hylafax-users-bounce@xxxxxxxxxxx
[mailto:hylafax-users-bounce@xxxxxxxxxxx] On Behalf Of Andy MacNamara
Sent: Thursday, February 17, 2005 2:11 PM
To: Dan Rowe
Cc: <hylafax-users@xxxxxxxxxxx>
Subject: Re: [hylafax-users] Faxmail + notify

Dan,

This sounds very much like the problem I was having - my version of mawk
didn't like some of the code in bin/notify, and so the e-mail would be sent
with none of the variables set or parsed by the awk script.

You can verify this by checking your syslog for lines that contain "notify"
and running the command yourself --

bin/notify "doneq/q146" "done" "1:17"

When I ran that command myself I got the error message:

awk: line 37: regular expression compile failed (missing operand)

For me, the solution was to modify the bin/notify script by searching for
the line that reads:

                   gsub("*","",status);

...and changing it to:

                   gsub(/\*/,"",status);

If you get a similar error message running the notify command by hand, can
you try the above fix and report back?

Thanks,
Andy MacNamara


On Feb 17, 2005, at 8:37 AM, Dan Rowe wrote:

> On Freebsd it defaults to nawk, but I'm having the same problem with 
> nawk, and gawk.
> In notify I changed
>
> printf "    No transcript available"
>
> To
>
> printf "    No transcript available _ $COMFILE and $jobtag"
>
> And the result is
>
>  No transcript available _ log/c and  job .
>
> Any ideas?
>
> On another note What program calls notify?
>
> Thanks for all the help and feedback
>
> -Dan
> -----Original Message-----
> From: hylafax-users-bounce@xxxxxxxxxxx 
> [mailto:hylafax-users-bounce@xxxxxxxxxxx] On Behalf Of Giuseppe Sacco
> Sent: Wednesday, February 16, 2005 6:43 PM
> To: hylafax-users@xxxxxxxxxxx
> Subject: Re: [hylafax-users] Faxmail + notify
>
> Il giorno mer, 16-02-2005 alle 18:11 -0500, Dan Rowe ha scritto:
>> ok, so we got faxmail receiving emails from sendmail, and sendingout 
>> the fax, but notify isn't quite working as i think it should be.
>>
>> i have read a lot about sendmail -D, but how can i use that in place 
>> of/conjunction with faxmail?
>>
>> i get an occasional email with the subject " job to failed "
> [...]
>
> Could you please try using gawk as AWK in your setup.cache?
> Otherwise you may have a look at the email sent yesterday in this list 
> with subject "awk bug in bin/notify"
>
> Giuseppe
>
>
> ----------------------------------------------------------------------
> -
> -----
> -----
>
> ok, so we got faxmail receiving emails from sendmail, and sendingout 
> the fax, but notify isn't quite working as i think it should be.
>
> i have read a lot about sendmail -D, but how can i use that in place 
> of/conjunction with faxmail?
>
> i get an occasional email with the subject " job to failed "
>
> and the body of the message is
> "No transcript available."
>  I edited the notify script and can see that the job number isn't 
> there, and there for it can't find the log file
>
> so my guess is the appropriate info isn't getting passed to notify.
> Any help would be greatly appreciated
>
> On another note.
> Is there a flow chart laying around some where for hylafax/faxmail?
>
> I think it goes something like this
>
>  program Sendmail -> faxmail -> hylafax|hfaxd         -> faxspool ->  
> faxq
>  config  sendmail.m4          Hyla.conf|hfaxd.conf
>
> -Dan
>
>
> ____________________ HylaFAX(tm) Users Mailing List 
> _______________________
>   To subscribe/unsubscribe, click
> http://lists.hylafax.org/cgi-bin/lsg2.cgi
>  On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < 
> /dev/null
>   *To learn about commercial HylaFAX(tm) support, mail 
> sales@xxxxxxxxx*


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*



____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions