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] well, i THOUGHT it was simple - bad exit status message
1. i looked at faxrcvd and saw WAY too much code for what i needed, so i
edited the script into something much smaller. i can send faxes to the
machine, and they are received without a problem. HOWEVER, not being a
shell programmer, there were things i needed to do upon receipt - like
renaming the incoming fax file, etc. so i translated faxrcvd into perl.
the perl script is suid and sgid to uucp. it runs when i execute it as
root from the command line - reads a file in recvq, translates it to pdf
and puts it into the proper directory. HOWEVER, when executed by
faxgetty during a receive it fails with the dreaded:
Bad exit status 01000 for 'bin/faxrcvd "recvq/fax000000035.tif" "ttyS0"
"000000036" "" "" ""'
the last line of the script is exit (0);
... and now you need help without providing more pieces of your code.
Any other exits before the last line?
i don't think it's a permissions problem - otherwise it wouldn't run
from the commandline.
Did you try to run it from the command line as user uucp / fax???
Does it work then also?
I regret, without more info about your code, you can't expect more help.
These "bad exit" messages i only know from old faxrcvd versions working
with never releases of hylafax, because the old ones expected *exactly*
4 parameters and exited with status "1" if more or less were passed.
Newer versions of faxrcvd check for *at least* xx parameters.
can anyone shed some light on what might be wrong?
2. i'd like to do a table lookup on CIDNAME and/or CIDNUMBER so that the
resulting pdf file can be named something reasonable, but these
parameters aren't being passed to faxrcvd as part of the call from
faxgetty (as shown above) - altho the shell script seems to expect them.
how can i get these passed to faxrcvd?
They are usually passed, if faxgetty gets them ... . AFAIK, DID purpose
and configuration of sending device.
--
holger
____________________ 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@xxxxxxxxxxxx*