The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Print queue not getting flushed akashgulati HP-UX 2 06-01-2008 04:55 PM
Print to ps2pdf print queue Sean_69 SUN Solaris 2 10-22-2007 08:00 AM
AIX 5 print queue chefsride AIX 0 08-04-2006 07:01 AM
FTP a print job that's still in queue? HVHS_CJR UNIX for Dummies Questions & Answers 2 05-02-2006 06:12 AM
Problem with print queue carell UNIX for Dummies Questions & Answers 1 08-30-2005 08:00 PM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-18-2007
Registered User
 

Join Date: Oct 2007
Posts: 6
Cool Print to a ps2pdf print queue.

I am trying to create a printer queue, on a SunOS 5.7 system, that outputs a pdf file. There is an application running on the system that has a print button, which sends print files to the default printer. If I disable the printer, I am able to manually capture the files in /var/spool/lp/tmp and convert them to pdf format using ps2pdf, but I would like this to be automatic. How do I set up a pseudo printer to output the files in pdf format in a specified directory?

Thanks,
Cheers,
Sean.
Forum Sponsor
  #2 (permalink)  
Old 10-22-2007
Registered User
 

Join Date: Oct 2007
Posts: 6
A solution...

To answer my question...

I found a way by using a filter script. You can set up a filter script with "lpfilter" and then make a print queue, with "lpadmin", that uses the filter. In the filter script it is possible to copy, move, convert, ftp, etc... the files that arrive in the print spool.

I am sure I could also have done it with an interface script...

If anyone has any better ideas they are welcome to add them.
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:35 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0