![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Print to ps2pdf print queue | Sean_69 | SUN Solaris | 2 | 10-22-2007 12:00 PM |
| Print to a ps2pdf print queue. | Sean_69 | UNIX for Dummies Questions & Answers | 1 | 10-22-2007 11:58 AM |
| AIX 5 print queue | chefsride | AIX | 0 | 08-04-2006 11:01 AM |
| FTP a print job that's still in queue? | HVHS_CJR | UNIX for Dummies Questions & Answers | 2 | 05-02-2006 10:12 AM |
| print queue behavior on HP-UX | dangral | UNIX for Dummies Questions & Answers | 6 | 08-24-2004 05:59 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Retrieving files from print queue
Hi,
wonder if anyone can help me out with this. I'm trying to retrieve files from a print queue on a remote server i.e. get files before they are printed. I'll be using perl to do this. I've written out some pseudocode below: Telnet to print server for ever (endless loop) pause 1 second run lpq command parse output from lpq command if there are any files in print queue get list of files (how do we do this ????????) for every file in print queue ftp file to 'our' server endfor endif endfor Basically I cannot write any code on the remote server to do this I have to do it all using my own script on 'our' server. Does anyone know how I can actually retrieve the files from the print queue? Any help would be much appreciated. Thanks. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|