faxspool from sendmail

Greg Shepherd (gshepher@sps.lane.edu)
Wed, 24 Sep 1997 09:21:15 -0700


>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

Yep, found this. I also had to set:
LD_LIBRARY_PATH=/usr/openwin/lib:/usr/lib

for the gs call to work. AND run faxspool with -q (quite mode)

All is well, exept for the header. Where can I find pbmtext?

Greg



.