faxspool from sendmail

Klaus Lichtenwalder (Klaus.Lichtenwalder@WebForum.DE)
Wed, 24 Sep 1997 16:47:42 +0100


On Wed, 24 Sep 1997, Greg Shepherd wrote:

> I wrote a quick perl script that takes a message piped from sendmail and
> calls faxspool. When I run the script from the command line, all is well.
> 
> When piped from sendmail, my script runs fine, but it fails to call
> faxspool successfully:
> 
> ----- Transcript of session follows -----
> /dev/fd/3: logname: not found
> /dev/fd/3: id: not found
> /dev/fd/3: expr: not found
> cannot determine user id. fix program.
> 

You should set the path to some reasonable values, e.g.
PATH=/bin:/usr/bin. Should be much better afterwards...

Klaus

------------------------------------------------------------------------ 
 Klaus Lichtenwalder, Dipl. Inform., PGP Key: email to key@Four11.com
 Lichtenwalder@ACM.org     http://www.wp.com/Klaus
 K.Lichtenwalder@Computer.org    fax: +49-89-91072699
  No wonder nobody comes here--it's too crowded. -Yogi Berra

.