Using Python instead of Bash

Cecil Westerhof Cecil at decebal.nl
Mon Jun 1 05:25:05 EDT 2015


Op Monday 1 Jun 2015 02:53 CEST schreef Dennis Lee Bieber:

> On Sun, 31 May 2015 19:06:40 +0200, Cecil Westerhof
> <Cecil at decebal.nl> declaimed the following:
>
>>
>> By the way: because of the lpr my script only works on Linux (and
>> probably Unix and Apple). Can I rewrite it in such a way that it
>> also works with Windows? Someone else has to test it then, because
>> I do not have a Windows computer.
>
> 	Not easily... Either you install something like cygwin which MAY
> include LPR, or...
>
> 1) You invoke (instead of LPR) some application that accepts a
> command line argument telling it to do a print (I'm pretty sure that
> long ago M$ Word accepted a command line /p to print, but it seems
> that has gone away replaced with something uglier -- notepad /p
> <file> works for simple text files... I managed to get Acrobat
> Reader to open a PDF and bring up a print requester, but that path
> still required the user to hit a number of dialog windows)
>
> 2) You incorporate win32 system calls to manage a print job in all
> details (create bitmap, provide bitmap to print driver, etc.)

Well, at the moment I will not bother about it then.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof



More information about the Python-list mailing list