Canon LBP2900 in Ubuntu

Shali 9846303531 shalib2 at gmail.com
Thu Dec 13 12:11:48 UTC 2012


Dear All,

I have tried LBP2900 Ubuntu 12.04 & 11.04 and its partially working.
i have created a shell script for restarting the ccpd service, and its
working but the print resume function do not work with this driver only
method is to resume is captstatusui -P LBP2900 and click resume job

now i am planning to make script like , if pending prints are in queue the
execute captstatusui otherwise restart ccpd
}

#!/usr/bin/expect

if { print queue >=0 }
{
send "captstatusui -P LBP2900\r" //
else {
send "sudo /etc/init.d/ccpd stop\r"
sleep 2
send "sudo /etc/init.d/ccpd start\r"
sleep 1
send "captstatusui -P LBP2900\r"
sleep 20
}

how can we get the capt print queue value and create a script based on that
value?
shell script experts please help me ...



-- 
Thanks & Regards

Shali.K.R
Server Administrator
Vidya Academy of Science & Technology
Thrissur, Kerala.
Mob:9846303531
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20121213/cfd5f6a5/attachment.html>


More information about the ubuntu-users mailing list