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/*
- Jul 21 Tue 2009 23:12
[雜記]RHCE筆記整理-RH133-Unit4(5)
close
全站熱搜
留言列表