Hylafax Mailing List Archives

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

[hylafax-users] well, i THOUGHT it was simple - bad exit status message



i'm a hylafax newbie trying to develop what i thought was a simple application for a customer. all the system needs to do is receive faxes, translate the faxes into pdf files and dump the pdfs into a samba-shared directory so that users on windows systems on the network can view them. i've run into two problems:

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);

i don't think it's a permissions problem - otherwise it wouldn't run from the commandline.

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?

thanks in advance.....

david camm
advanced web systems
keller, tx
www.advwebsys.com


____________________ 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*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services