Date: Sun, 16 Feb 2003 21:57:15 +0100 From: Per olof Ljungmark <peo@intersonic.se> To: Toomas Aas <toomas.aas@raad.tartu.ee> Cc: questions@freebsd.org Subject: Re: hylafax / faxrcvd script / freebsd Message-ID: <3E4FFB2B.6050809@intersonic.se> In-Reply-To: <200302161841.h1GIfg026987@lv.raad.tartu.ee> References: <200302161841.h1GIfg026987@lv.raad.tartu.ee>
next in thread | previous in thread | raw e-mail | index | archive | help
Toomas Aas wrote: > Hi! > > >>The bin/faxrcvd works completely well from the command line, only fails >>when called from the hylafax server (excerpt from log below): >> >>RECV FAX: bin/faxrcvd "recvq/fax00035.tif" "cuaa1" "00000067" "" "" "" >>here the script fails at line 202: >> >>$PS2PDF -g$GW\x$GL -r$RW\x$RL $FILE.ps $FILE.pdf 2>/dev/null >> >>The "$FILE.ps" is created but not converted to "$FILE.pdf". >> >>This works from the command line issued as: >>%ps2pdf -g<size> -r<resolution> recvq/fax00035.tif.ps recvq/fax00035.tif.pdf > > > I must admit I don't have a first clue about the arhchitecture of > hylafax, but maybe the problem is that ps2pdf is simply not found in > the path? In that case, replacing it with /path/to/ps2pdf in whichever > script it is called from would help. > -- Toomas, Already tried unfortunately. If I replace #!/bin/sh with #!/bin/sh -xv in the script and watch the output you can see that the script adds the absolute path: + /usr/local/bin/ps2pdf -g1728x583 -r204x196 recvq/fax00037.tif.ps recvq/fax00037.tif.pdf If I knew how to pipe the output to a file when the script is running as called from Hylafax I could probably solve it, right now I can only do it separately from the command line... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E4FFB2B.6050809>