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] 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


____________________ 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