PDF Creator/Shared Printer
Ben Pfaff
pfaffben@msu.edu
25 Sep 2000 23:35:48 -0400
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.