There are no standards for lpstat behavior - mine simply reports an error. Yours seems to do interesting things, so let's investigate before we can answer your question.
Run your lpstat command from the prompt.
Next echo $?
Example
echo $? should produce a non-zero value (return code) on errors or warnings.
Is that what you see?
If that is the case, then you can use $? to have your code ignore any text output.
When you do a lpstat -t it displays all your printers and tty values.
Where is the file that stores this information in SCO 5.0.5?
Thanks in advance
Stufine (2 Replies)
Hi,
I have been using Hp so far and I am a new user to Solaris..
well, in HP Unix, if I type 'lpstat' if gives me the list of printers connected to the network and their status.. but in solaris it only gives the details if there is any job on the queue. I just want to know what is the... (3 Replies)
I don't know if anyone still looks at this forum or not, but here goes.
I've got two identical SCO OpenServer 5.0.7 machines, fully patched and updated. On one the non-root user can do lpstat -p and it will display a list of printers and their status, on the other:
$ lpstat -p
UX:lpstat: ERROR:... (3 Replies)
Hi there all..
I got 4 HP ux systems and 4 AIX systems here.
when I let LPSTAT make a report in aix with -W
I get a really nice report.
Example:
Queue Dev Status Job Files User PP % Blks Cp Rnk
-------------------- -------------- --------- ------ ------------------ ---------- ---- ---... (12 Replies)
Hi there all,
I got a long list of printers installed and a longer list of printers in my hosts file.
In the hosts file I got a even longer list of printers
in the hosts file I got the IP adress of all printers next to the printer name.
How can I get a script working to get the printers... (0 Replies)
Hi Guys,
I am geting this message ".status: (WARNING): 0781-102 Invalid printer name: xerox".i m reading printer name from a text file.i try to print the value reading from file is correct xerox. if run lpstat -pxerox -l it works fine but when i try to read from file it throughs warining.please... (1 Reply)
Hi,
I tried to migrate a server, I installed AIX on a new server and I want to configure the printer queues. I copied all of files from the old server where the printer queues are working fine. I followed these steps:
1. copy the /etc/qconfig (make a copy of the original before)
2. Copy the... (10 Replies)
Hi
lpstat reports me "Failed to contact service for xxxxxx: not-found"
lpstat -p test -l
printer test unknown state. enabled since Oct 27 12:01 2009. available.
Remote Name: XXXXXX
Remote Server: sunsrv
Failed to contact service for xxxxxx: not-found
can someone help... (1 Reply)
Hi all,
Newbie to the site here and fairly novice to UNIX\LINUX so please bear with me.:)
My question is; can the lpstat -t command show the size of the print jobs in mb or gb instead of bytes? They would be much easier to view this way.
For more information of what I'm on about; please... (1 Reply)
Discussion started by: Melikins
1 Replies
LEARN ABOUT CENTOS
lpq
lpq(1) Apple Inc. lpq(1)NAME
lpq - show printer queue status
SYNOPSIS
lpq [ -E ] [ -U username ] [ -h server[:port] ] [ -P destination[/instance] ] [ -a ] [ -l ] [ +interval ]
DESCRIPTION
lpq shows the current print queue status on the named printer. Jobs queued on the default destination will be shown if no printer or class
is specified on the command-line.
The +interval option allows you to continuously report the jobs in the queue until the queue is empty; the list of jobs is shown once every
interval seconds.
OPTIONS
lpq supports the following options:
-E
Forces encryption when connecting to the server.
-P destination[/instance]
Specifies an alternate printer or class name.
-U username
Specifies an alternate username.
-a
Reports jobs on all printers.
-h server[:port]
Specifies an alternate server.
-l
Requests a more verbose (long) reporting format.
SEE ALSO cancel(1), lp(1), lpr(1), lprm(1), lpstat(1),
http://localhost:631/help
COPYRIGHT
Copyright 2007-2011 by Apple Inc.
16 June 2008 CUPS lpq(1)