9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello All,
When using CUPs. Does the file that gets printed live in some temp directory somewhere?
For example, if a user submits a PDF file to be printed, does a cached copy of that PDF file live somewhere on the Server in a temporary directory, at least until its printed?
# lpq -P... (1 Reply)
Discussion started by: mrm5102
1 Replies
2. Red Hat
Hi,
We need to restart CUPS service, and want to know if restarting CUPS service will stop/start existing printing queues?
Thank you! (1 Reply)
Discussion started by: aixlover
1 Replies
3. Red Hat
Hi all,
unable to print from linux box. Earlier it used to work fine.
The print job is sitting in the queue and not going to printer.
Removed queue job and tried again but no luck.
Tried "cupsenable" but ended up with no success.
I tried to print two text files as "root" with "lp " command... (0 Replies)
Discussion started by: lramsb4u
0 Replies
4. UNIX for Advanced & Expert Users
Hello,
Sometimes i need to clear all the jobs of a print queue and it is really annoying to cancel one by one.
Is there a way to cancel all print jobs for a specific print queue with a single command instead of cancelling them one by one?
My AIX system is 5.3
Thank you for your attention (2 Replies)
Discussion started by: omonoiatis9
2 Replies
5. SCO
Hi, i'm running Openserver 5.0.7 as a CUPS client for a Linux server. The root user can issue a "lpstat -t" to see the printers and can submit jobs without issues.
The problem presents when I try to work as a regular user. If I issue an "lpstat -t" all I get after a few seconds is "lpstat:... (1 Reply)
Discussion started by: cyruspy
1 Replies
6. Shell Programming and Scripting
Hi,
I need to get queue name ,status and numbero jobs waiting in queue.I was using lpstat and i got the queue name ,status and number of jobs waiting but the problem with lpstat is that when printer is out of paper then it shows printer status ready and 0 jobs in queue.is there any way that i can... (4 Replies)
Discussion started by: sagii
4 Replies
7. Shell Programming and Scripting
Hi,
i m having problem to get number of jobs waiting using lpstat.my printer is out of paper and 10jobs are in queue but i run lpstat -pqname it didnt show any thing.any one have idea whats wrong here. thanks
sagii (2 Replies)
Discussion started by: sagii
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am wondering how to catch print jobs to process them before been served to the printer.
I was told that the challenge is to catch raw text that an old legacy application sends to the printer (invoices, quotes, etc) and save them as text files to allow a new application to process them... (5 Replies)
Discussion started by: miguel77mex
5 Replies
9. UNIX for Advanced & Expert Users
I have just installed cup printing software on solaris 8 and i am able to print successfully
from the print server but unable to print from any of the print client in my local network subnet. i have enable browsing so that cups printer server could broadcaste itself to client. but still unable to... (1 Reply)
Discussion started by: hassan2
1 Replies
lpq(1B) SunOS/BSD Compatibility Package Commands lpq(1B)
NAME
lpq - display the content of a print queue
SYNOPSIS
/usr/ucb/lpq [-P destination] [-l] [ + [interval]] [ request-ID...] [user...]
DESCRIPTION
The lpq utility displays the information about the contents of a print queue. A print queue is comprised of print requests that are waiting
in the process of being printed.
lpq displays the following information to the standard output:
o the username of the person associated with a print request,
o the position of a print request in the print queue,
o the name of file or files comprising a print request,
o the job number of a print request, and
o the size of the file requested by a print request. File size is reported in bytes.
Normally, only as much information as will fit on one line is displayed. If the name of the input file associated with a print request is
not available, the input file field indicates the standard input.
The print client commands locate destination information using the printers database in the name service switch. See nsswitch.conf(4),
printers(4), and printers.conf(4) for details.
OPTIONS
The following options are supported:
-P destination Displays information about printer or class of printers (see lpadmin(1M)) . Specify destination using atomic or POSIX-style
(server:destination) names. See printers.conf(4) for information regarding the naming conventions for atomic names and
standards(5) for information regarding POSIX.
-l Displays information in long format. Long format includes the name of the host from which a print request originated in the
display.
+ [interval] Displays information at specific time intervals. Stops displaying information when the print queue is empty. Clears the
screen before reporting displaying the print queue. Specify interval as the number of seconds between displays. If inter-
val is not specified only executes once.
OPERANDS
The following operands are supported:
request-ID The job number associated with a print request.
user The name of the user about whose jobs lpq reports information. Specify user as a valid username.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
non-zero An error occurred.
FILES
/var/spool/print/[cd]f* Spooling directory and request files for jobs awaiting transfer.
/var/spool/lp/* LP print queue
$HOME/.printers User-configurable printer database
/etc/printers.conf System printer configuration database
printers.conf.byname NIS version of /etc/printers.conf
printers.org_dir NIS+ version of /etc/printers.conf
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscplp |
+-----------------------------+-----------------------------+
SEE ALSO
lp(1), lpc(1B), lpr(1B), lprm(1B), lpstat(1), lpadmin(1M), nsswitch.conf(4), printers(4), printers.conf(4), attributes(5), standards(5)
SunOS 5.10 23 May 2003 lpq(1B)