knowing if a printer is connected

Phil Davis revdev at pdslabs.net
Fri Nov 20 00:14:08 EST 2009


This is the best so far!

Phil Davis



JosepM wrote:
> 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
>   

-- 
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net




More information about the use-livecode mailing list