From owner-freebsd-questions Sun Feb 16 12:57:26 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FC5B37B401 for ; Sun, 16 Feb 2003 12:57:25 -0800 (PST) Received: from as9-2-1.bi.s.bonet.se (as9-2-1.bi.s.bonet.se [217.215.7.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD72243F3F for ; Sun, 16 Feb 2003 12:57:23 -0800 (PST) (envelope-from peo@intersonic.se) Received: by as9-2-1.bi.s.bonet.se (Postfix, from userid 1003) id 0DFA049697A; Sun, 16 Feb 2003 21:57:22 +0100 (CET) Message-ID: <3E4FFB2B.6050809@intersonic.se> Date: Sun, 16 Feb 2003 21:57:15 +0100 From: Per olof Ljungmark Organization: Intersonic AB User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030126 X-Accept-Language: en-us, en, sv MIME-Version: 1.0 To: Toomas Aas Cc: questions@freebsd.org Subject: Re: hylafax / faxrcvd script / freebsd References: <200302161841.h1GIfg026987@lv.raad.tartu.ee> In-Reply-To: <200302161841.h1GIfg026987@lv.raad.tartu.ee> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-102.8 required=5.7 tests=IN_REP_TO,NOSPAM_INC,QUOTED_EMAIL_TEXT,REFERENCES, SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MOZILLA_UA, USER_IN_WHITELIST,X_ACCEPT_LANG version=2.44 X-Spam-Level: X-Sanitizer: Advosys mail filter Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 -r 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