![]() |
Riccardo Finally I have got it working thanks. This is the final piece of code that I currently have got in place:- TIFF|tiff|TIF|tif) TraceLog "Using tiff2pdf" name="`basename $1 .tif`" ##NB Convert TIFF file to PS first $TIFF2PS -pa1O $TMPDIR/$name.ps $1 #NB Line Below For a Horozontal Line Along Bottom Of Fax #psmark -i $TMPDIR/$name.ps -o $TMPDIR/$name-marked.ps -x -2 -y 200 -r 0 -s 10 "`date`" #NB Line Below For a Vertical Libe Down Side of Fax psmark -i $TMPDIR/$name.ps -o $TMPDIR/$name-marked.ps -x 5 -y 5 -r 90 -s 10 "`date`, Ref: $name" ##NB Convert PS back to PDF ps2pdf -sPAPERSIZE=a4 -dAutoRotatePages=/None $TMPDIR/$name-marked.ps $TMPDIR/$name.pdf rm -f $TMPDIR/$name-marked.ps ##NB Line Below is original From Original Script #$TIFF2PDF -o $TMPDIR/$name.pdf $1 echo "$TMPDIR/$name.pdf" I found out that I was having a problem with using $PS2PDF as a variable, basically this was not being set, so I just used ps2pdf instead. Thanks for your help Riccardo. Regards Andy On Fri, September 5, 2008 18:33, Andy Rogers wrote: > Riccardo > > I belive that iam almost there now, after removeing the -o their was no > difference I was still not receiving an attachment, after a day of > debugging I think I have finally found the answer. > > All of the commands were working fine from the command line, but when > executed in common-functions $TIFF2PS & psmark were creating their files > correctly, but nothing was being produced from $PS2PDF. > > It seems that in the $TMPDIR the file output file created by psmark, was > being assigned file permissions of 600 which when $PS2PDF was executed it > did not like and threw up an error, when I chmod 644 this file the file > exected fine from the command line. > > So I have now added an extra line of chmod 644 $TMPDIR/$name-parked.ps > before I call the $PS2PDF command and hopefully this should then resolve > my final problem. But I have got to wait until Monday now to try this out > on the server. > > I shall let you know how I get on. > > If Iam doing something incorrect please do let me know. > > Thanks > > Andy > ____________________ 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*