This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

修性不修命,萬劫陰靈難入聖; 修命不修性,猶有家財無主柄
Album | Blog | Comment | Profile | Control Panel
aquatower | 21 July,2009 23:12

CUPS

config file: /etc/cups/cupsd.conf, /etc/cups/printers.conf

config tool: system-config-printer


1.使用#system-config-printer 設定印表機
因測試需要設定二台

[root@server1 sysconfig]# lpstat -a
lp2 accepting requests since Tue 14 Jul 2009 10:46:10 PM CST
printer1 accepting requests since Tue 14 Jul 2009 10:46:03 PM CST


2.指令

#lpstat
#lpr
#lpq
#lpmove
#lprm or #cancel

印出
[root@server1 sysconfig]# ls /root|lpr -P lp2
[root@server1 sysconfig]# ls /root|lpr -P printer1

列出queue
[root@server1 sysconfig]# lpstat
lp2-10 root 1024 Tue 21 Jul 2009 11:17:27 PM CST
printer1-11 root 1024 Tue 21 Jul 2009 11:17:39 PM CST

假設lp2故障, 將lp2-10移到printer1
[root@server1 sysconfig]# lpmove lp2-10 printer1
[root@server1 sysconfig]# lpstat
printer1-10 root 1024 Tue 21 Jul 2009 11:17:27 PM CST
printer1-11 root 1024 Tue 21 Jul 2009 11:17:39 PM CST

刪除printer-11
[root@server1 sysconfig]# lprm -P printer1 11
或#cancel printer1-11

Queue:
/var/spool/cups/*



Comment

Trackback

Comment Permissions: Only members may comment. If you are not a PIXNET member, click here to sign up.