> From [EMAIL PROTECTED] Thu Jan 3 20:00:37 2002 > Date: Thu, 3 Jan 2002 22:54:17 -0500 (EST) > Subject: PDF_for_LPRng > From: <[EMAIL PROTECTED]> > > Howdy. I *really* hate to bother you, but I've tried and tried, and > thus-far I've failed. Miserably. I must just be missing some "LPRng-foo" > or something... Anyway: it occured to me that it would be amazingly cool if > I could create a queue that accepted postscript jobs, mushed them through > ps2pdf, and then sent the resulting output back to the owner of the job via > e-mail. > > I can't, for love or money, figure out how to accomplish this. I've read > the HOWTO, looked at scripts/filters, tried a bunch of my own, and had zilch > success. Might you either know of anyone who's tried this, or have any > suggestions as to what I might try? > > Thanks for your time, and Happy New Year! > > Ken D'Ambrosio > Sr. SysAdmin, > Xanoptix, Inc. >
Note: the script has not been tested. Your mileage may vary. Test this by doing: ps2pdf -nusername -Hhost <ps_file_to_translate You will need to put the ps2pdfconverter script into /usr/libexec/filters/ps2pdfconvert Here is a sample printcap entry: ps2pdf: :sd=/var/spool/lpd/%P :filter=/usr/libexec/filters/ps2pdfconverter :lp=/dev/null Don't forget to run checkpc after adding this. Patrick Powell Astart Technologies, [EMAIL PROTECTED] 9475 Chesapeake Drive, Suite D, Network and System San Diego, CA 92123 Consulting 858-874-6543 FAX 858-279-8424 LPRng - Print Spooler (http://www.lprng.com) ------------- ps2pdfconverter script ------------ #!/bin/sh #set path to include the PS2PDF converter PATH=/bin:/usr/bin:/usr/local/bin:$PATH export PATH # get the command line options, set corresponding variable # to the value while expr "$1" : '-.*' >/dev/null ; do vAr=`expr "$1" : '-\(.\).*'`; vAlue=`expr "$1" : '-.\(.*\)'`; case "$vAr" in - ) break;; c ) c=1;; [a-zA-Z] ) if test "X$vAlue" = "X" ; then shift; vAlue=$1; fi; eval $vAr='$vAlue'; #setvar $vAr "$vAlue" ;; esac; shift; done # -n username -H host ps2pdf - >temp$$ mail -s "PDF output" $n@$H <temp$$ rm -f temp$$ ----------------------------------------------------------------------------- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -----------------------------------------------------------------------------
