Sponsored Content
Full Discussion: Get print job information
Operating Systems OS X (Apple) Get print job information Post 302116077 by CBarraford on Tuesday 1st of May 2007 02:16:46 PM
Old 05-01-2007
Get print job information

Hi all,
I am on a mac and I am trying to get more information about print jobs i have. "lpq" only displays the document printing, size, and job ID. I need the status (if its on hold or not). Anyway to do that in unix/cups?
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

FTP a print job that's still in queue?

I have an HP-UX system that has remote print queues created on it. We're having trouble with the data so I stopped the queue from sending its data to the recieving server. I typed "lpstat -o<queue> " and I see two print jobs listed c_91428.1 and c_91429.1 but when I go to the /usr/spool/<queue>... (2 Replies)
Discussion started by: HVHS_CJR
2 Replies

2. UNIX for Dummies Questions & Answers

How can I print multiple files in one job?

Does anybody know how I can print multiple files in one print job? This is what I am doing currently: enscript file1 file2 file3 sent to printer sent to printer sent to printer I would like it to print like this: enscript file1 file2 file3 sent to printer The current behavior... (2 Replies)
Discussion started by: GregoryPeck
2 Replies

3. UNIX for Dummies Questions & Answers

Job Completion Information?

Hi, I am trying to get some information on the jobs that are running. I have used the "ps" command, to get information such as 'cpu usage', 'username', 'pid', etc., I've also used the "bjobs" command to get information such as 'submit time' and 'start time'. The only thing I need now is to... (3 Replies)
Discussion started by: davidfrank
3 Replies

4. AIX

Print job to file

Anyone know of a way to do this? :confused: (1 Reply)
Discussion started by: eley
1 Replies

5. UNIX for Dummies Questions & Answers

print job seperator page

How do I get my linux login ID to print on seperator page on print jobs. Right now it prints " Remote User" thanks Jim (0 Replies)
Discussion started by: jdmowrer
0 Replies

6. Shell Programming and Scripting

Print file information using ffmpeg in perl

I am trying to print file information using ffmpeg tool in perl Here is my code use strict; use warnings; use IPC::Open3; # example my $filename = $ARGV; my %videoInfo = videoInfo($filename); print "duration: " . $videoInfo{'duration'} . "\n"; print "durationsecs: " .... (0 Replies)
Discussion started by: srijith
0 Replies

7. Shell Programming and Scripting

perl script to print file information - newbie

Hi I have a perl script that prints all the video and audio file information(playing duration). It works fine in one of my friends linux laptop. But it doesn't work in my both windows and linux. My friend told me I have to do install some module ( ppm instal ...... ) but I have no... (1 Reply)
Discussion started by: srijith
1 Replies

8. Shell Programming and Scripting

Some Help to print out information

Need abit of help to print out information. I have something like this Logitech:My store:34.3:23 Altec Lansing:Partner:45.9:20 with : as delimiter and i need an output arranged like this Logitech My Store 34.3 23 Altec Lansing Partner 45.9 20 tried... (5 Replies)
Discussion started by: ezinele
5 Replies

9. Shell Programming and Scripting

I want a script to view the complete log information of data stage job from UNIX IBM AIX.

Hi, I am working on data stage 8.7 version and I want a script a to view the all log information of the data stage job from UNIX environment. Can you please help me out by give the script. Thanks in advance... (7 Replies)
Discussion started by: victory
7 Replies
LPQ(1)							    BSD General Commands Manual 						    LPQ(1)

NAME
lpq -- spool queue examination program SYNOPSIS
lpq [-a] [-l] [-Pprinter] [job # ...] [user ...] DESCRIPTION
The lpq utility examines the spooling area used by lpd(8) for printing files on the line printer, and reports the status of the specified jobs or all jobs associated with a user. The lpq utility invoked without any arguments reports on any jobs currently in the queue. Options: -P Specify a particular printer, otherwise the default line printer is used (or the value of the PRINTER variable in the environment). All other arguments supplied are interpreted as user names or job numbers to filter out only those jobs of interest. -l Information about each of the files comprising the job entry is printed. Normally, only as much information as will fit on one line is displayed. -a Report on the local queues for all printers, rather than just the specified printer. For each job submitted (i.e., invocation of lpr(1)) lpq reports the user's name, current rank in the queue, the names of files comprising the job, the job identifier (a number which may be supplied to lprm(1) for removing a specific job), and the total size in bytes. Job ordering is dependent on the algorithm used to scan the spooling directory and is supposed to be FIFO (First in First Out). File names comprising a job may be unavailable (when lpr(1) is used as a sink in a pipeline) in which case the file is indicated as ``(standard input)''. If lpq warns that there is no daemon present (i.e., due to some malfunction), the lpc(8) command can be used to restart the printer daemon. ENVIRONMENT
If the following environment variable exists, it is used by lpq: PRINTER Specifies an alternate default printer. FILES
/etc/printcap To determine printer characteristics. /var/spool/* The spooling directory, as determined from printcap. /var/spool/*/cf* Control files specifying jobs. /var/spool/*/lock The lock file to obtain the currently active job. DIAGNOSTICS
Unable to open various files. The lock file being malformed. Garbage files when there is no daemon active, but files in the spooling direc- tory. SEE ALSO
lpr(1), lprm(1), lpc(8), lpd(8) HISTORY
A lpq utility appeared in 3BSD. BUGS
Due to the dynamic nature of the information in the spooling directory lpq may report unreliably. Output formatting is sensitive to the line length of the terminal; this can results in widely spaced columns. BSD
April 28, 1995 BSD
All times are GMT -4. The time now is 10:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy