PDF Creator/Shared Printer

Jason Justman justmanj@msu.edu
Thu, 28 Sep 2000 12:32:05 -0400


Ben,

When I try to use your hack like this:

/usr/bin/ps2pdf - /home/samba/pdf_output/`date +%Y.%m.%m`.$$.pdf

I end up getting an additional 2 pages to the PDF document stating
'ERROR: undefinedfilename
OFFENDING COMMAND: /home/samba/pdf_output/1852.pdf
STACK:'

and the doc doesnt show up in /home/samba/pdf_output.  What version of
ps2pdf are you using?

Ben Pfaff wrote:

> Dpk <dpk@egr.msu.edu> writes:
>
> > Should be:
> >
> >   #!/bin/sh
> >   /usr/bin/ps2pdf - /home/samba/pdf_output/$$.pdf
> >
> > $$.pdf is a cheap hack that will name the pdf file with the process
> > id, (i.e. 1452.pdf) [...]
>
> A slightly less cheap hack would prevent duplicates and allow for
> ordering in chronological order based on name:
>         /usr/bin/ps2pdf - /blah/`date +%Y.%m.%m`.$$.pdf
>
> A good source of info on this sort of thing is the LPRng HOW-TO
> document, which provides lots of advice on how to write filters,
> including parsing command line options from a shell script using
> the shell `getopt' function.
> _______________________________________________
> linux-user mailing list
> linux-user@egr.msu.edu
> http://www.egr.msu.edu/mailman/listinfo/linux-user