Printer Status
You can use the following commands to have information and the printer status
displayed or copied to a file.
Use the lpq or lpstat command to display the information about print jobs.
Use the rsh, rcp or ftp commands to get more detailed information from the
printer.
Viewing the Print Job Status with lpq and lpstat
❖ ❖ ❖ ❖ BSD UNIX workstation, Linux
% lpq -Pprinter_name
For example: Printer name is np
% lpq -Pnp
❖ ❖ ❖ ❖ System V UNIX, Soralis, HP-UX
% lpstat -o printer_name
For example: Printer name is np
% lpstat -o np
Note
❒ In case of HP-UX, do not put a space between "-o" and "printer_name".
Viewing the Printer Status with rsh and ftp
Use the rsh or ftp command to display the status of printer or information about
print jobs using specified parameters.
You can use these commands for BSD and System V UNIX.
Note
❒ If your workstation is HP-UX, use the remsh command instead of the rsh.
% rsh host_name parameter
% ftp host_name
User user_name
password:
ftp> get parameter -
Note
❒ For the user name and password input nothing, and then press the {RETURN}
key.
Printer Status
1
13
Need help?
Do you have a question about the SCRIPT2 and is the answer not in the manual?