![]() |
Thanks Stefan, after adding two lines of PATH to mail2fax.sh script file, the error shown previously is eliminated. I need to do more test. -----Original Message----- From: Stefan Wagner [mailto:] Sent: Wednesday, June 23, 2010 12:15 PM To: Kane; hfax List Subject: RE: [hylafax-users] mail2fax not running on Hylafax+ 5.4.2 Kane, it is exactly as I supposed. The script does not set PATH, so its environment variables have the values that are inherited from the invoking MTA. Add these two lines (as I already wrote) at the beginning of the script. As it seems you are not familiar with shell programming, here an extract of the script: --------- begin of extract ---------- # We need to make sure we handle all these possibilities for # both TO and FROM situations. Return-Path is different. # PATH=$PATH:/usr/local/bin export PATH RANDOMFAX=/tmp/mail2fax.$$ mkdir $RANDOMFAX cat >> $RANDOMFAX/_message_ # Uncomment the following three lines for debugging. -------- end of extract --------- HTH Regards Stefan PS: To avoid misunderstandings: This is absolutely basic Unix admin knowledge. -----Original Message----- From: Kane Wong [mailto:kanew@xxxxxxxxxxxxxxxx] Sent: Wednesday, June 23, 2010 8:25 PM To: Stefan Wagner Subject: RE: [hylafax-users] mail2fax not running on Hylafax+ 5.4.2 Hi; I am attaching my script file of mail2fax.sh, and how can I change the path here. Thanks! From: hylafax-users-bounce@xxxxxxxxxxx [mailto:hylafax-users-bounce@xxxxxxxxxxx] On Behalf Of Stefan Wagner Sent: Wednesday, June 23, 2010 10:59 AM To: hfax List Subject: Re: [hylafax-users] mail2fax not running on Hylafax+ 5.4.2 Kane, it seems that /usr/local/bin is not in $PATH at this point. Note: Do not except PATH to be always set in the same way as it is in your interactive shell. Often it contains just /bin:/usr/bin. If in doubt, populate it in your script: PATH=$PATH:/usr/local/bin export PATH HTH Kind regards Stefan This e-mail and any files transmitted with it are confidential and may contain privileged information. It is intended solely for the use of the individual to whom it is addressed and others authorized to receive it. If you are not the intended recipient you must not copy, distribute or use this e-mail or the information contained in it for any purpose other than to notify us. If you have received this message in error, please notify the sender immediately by reply e-mail and delete this e-mail from your system. ____________________ 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*