Wednesday, April 20, 2011

printer on linux

to check status
---------------

[root@server ~]# lpstat -oprintername

to enable printer
---------------------
[root@server ~]# /usr/bin/enable printername

to test print
-----------------
[root@server ~]# echo "test print from printername" | lp -dprintername ; lpstat -oprintername
request id is printername-695 (1 file)
printername1-695          root              1024   Wed 20 Apr 2011 09:30:28 AM BST


To remove jobs
---------------
[root@server ~]# lprm -Pprintername

0 comments:

Post a Comment

 
;