printer status for print spooler: help


 
Thread Tools Search this Thread
Top Forums Programming printer status for print spooler: help
# 1  
Old 11-13-2003
Question printer status for print spooler: help

Hey people


I am currently working on a print spooler for unix over a network. I need help regarding the status of the printer. Is there any way to know when the printer has finished a previous job, so that the next job from the queue can be processed. Also is there any other way to print other than system("lp") or fprintf to the device file.I want to override the default lpr spooler.

Help...


Many thanks Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to kill printer PIDs except the spooler PID?

First of all, I'd like to congratulate this big family and all members for all the work you do! I'm trying to do an script or sentence which kills an specific printers PIDs: all printers PIDs older than 72h running in the server. Steps: 1.- List all printers PID sorting by date: ps... (6 Replies)
Discussion started by: djflu
6 Replies

2. UNIX for Dummies Questions & Answers

Print to a network printer on DG/UX

i need to print a file on a network printer with an ip 128.233.1.6 (for example) on a DG/UX (System V) Release 5.4R3.10 so that when telnet from windows client can print on the network printer. (2 Replies)
Discussion started by: kamwa
2 Replies

3. Shell Programming and Scripting

Printer status script giving error

Hi, We check the printer status at the command line by giving the following command and the system gives an output; lpstat -prn001_hp4000n When I give the same command in a UNIX script the system gives an error while running the script as "lpstat: not found". Please let me know... (8 Replies)
Discussion started by: jmathew99
8 Replies

4. UNIX for Dummies Questions & Answers

Print spooler

:eek: I need to check the status of my print spooler on an HP-UX what is the command? Thanks Janelle (1 Reply)
Discussion started by: lilnixon
1 Replies

5. UNIX for Dummies Questions & Answers

Help with LPRng Print Spooler and Printcap file

Im fairly new to unix printing and printcap files, but have been given the task of administering the print functions of a server, and I have a specific question. We use a 3rd party pay-to-print system which references our server that hosts the print queues and printcap file for about 15 queues.... (0 Replies)
Discussion started by: Choach
0 Replies

6. Windows & DOS: Issues & Discussions

Print using Window Default Printer

Looking for a program to print a file created in MKS Korn Shell and using the default Windows Vista printer without user interaction (0 Replies)
Discussion started by: njysprez
0 Replies

7. UNIX and Linux Applications

Print Spooler product on UNIX?

HI all, I was looking for Print Spooler products for Unix. Basically our requirement is to be able to send jobs to the spool "holded", change printing properties, view a list of jobs to be printed (based on some criteria), send a job to be printed (release) and view the contents of a specific... (1 Reply)
Discussion started by: bananero
1 Replies

8. Shell Programming and Scripting

Print Spooler Script

I have posted before about this; but I am not sure I was clear on my message, so I am hoping someone can help with this as I gathered more information. Excuse me if I am not making sense...I am new to UNIXWARE :-( The print spooler start script was adjusted according to another engineer... (4 Replies)
Discussion started by: Yorgy
4 Replies

9. UNIX for Dummies Questions & Answers

Print on a printer which is password protected

Hi, I am trying to print from HP unix machine to a Toshiba printer which is password protected. How can I print? Thanks. Anuj (1 Reply)
Discussion started by: Anuj
1 Replies

10. AIX

AIX 5.2 print to a local printer

HHi guys . I have this problem ,I'm trying to print to a local machine (windows from the aix box , I;m using tiny Term Emulator) I mean i have no idea what should i do to get this going. The printer is connect it to the pc , it does not have an ip address. Thanks a lot Jose (0 Replies)
Discussion started by: josramon
0 Replies
Login or Register to Ask a Question
FOOMATIC-PRINTJOB(1)					      General Commands Manual					      FOOMATIC-PRINTJOB(1)

NAME
foomatic-printjob - manage printer jobs in a spooler-independent fashion SYNOPSIS
foomatic-printjob [ -s spooler ] [ -P queuename ] [ -o option1=value1 -o option2 ... ] [ -i ] [ file1 file2 ... ] foomatic-printjob -Q [ -s spooler ] [ -P queuename ] [ -i ] [ -a ] [ user1 user2 ... ] foomatic-printjob -R [ -s spooler ] [ -P queuename ] [ -i ] [ - | jobid1 jobid2 ... ] foomatic-printjob -C [ -s spooler ] [ -i ] command [ arguments ] foomatic-printjob -S [ -s spooler ] [ -i ] foomatic-printjob -h [ -s spooler ] [ -P queuename ] [ -i ] DESCRIPTION
foomatic-printjob provides a spooler-independent interface to creating and managing printer jobs and print queues. Note that the first argument changes the mode of the command, as it combines the functionality of several System V-style printing commands. OPTIONS -sspooler Explicit spooler type. -Pqueuename Any commands specified should apply to this queue instead of the default. -ooption=value Set option to value -ooption Set the switch option -#n Print n copies file1 file2 ... Files to be printed, when no file is given, standard input will be printed -Q Query the jobs in a queue. If a list of users is specified, only those users' jobs will be queried. -Q -a Query the jobs in all queues. If a list of users is specified, only those users' jobs will be queried. -R [ - | jobid1 jobid2 ... ] Remove a job from a queue. Using - will remove all jobs. -C command [ arguments ] Execute control commands for queue/job manipulation. The commands are the ones of the BSD "lpc" utility. Use the control command "help" to get a list of supported commands. Note: the amount of commands varies with the spooler, but the same commands given under different spoolers do the same thing. -i Interactive mode: You will be asked if foomatic-printjob is in doubt about something. Otherwise foomatic-printjob uses auto- detection or quits with an error. -S Save the chosen spooler as the default spooler -h Show this message or show a list of available options if a queue is specified SEE ALSO
foomatic-configure(1) and the documentation for your print spooler. AUTHOR
Manfred Wassmann <manolo@NCC-1701.B.Shuttle.de> and Chris Lawrence <lawrencc@debian.org> for the foomatic project using output from the associated binary. BUGS
This manpage still needs some editing. Foomatic Project 2001-01-06 FOOMATIC-PRINTJOB(1)