knowing if a printer is connected

JosepM jmyepes at mac.com
Thu Nov 19 23:35:24 EST 2009


Hi,

Also you can use from the shell:

lpstat -p --> to see the available printers
lpstat -d --> to know the default printer name

and to send directly to the printer:

lpr -P <name of the printer> -o page-ranges=1 -o landscape <path to the file
to print>

If you check the lpr command in CUPS manual you can see a lot of options to
control the job sended to the printer. The question is capture the name of
the printer or class. 
The name use "_" for spaces, assigning the name directly don't work, almost
for me.


Salut,
Josep
-- 
View this message in context: http://n4.nabble.com/knowing-if-a-printer-is-connected-tp624188p624396.html
Sent from the Revolution - User mailing list archive at Nabble.com.



More information about the use-livecode mailing list