Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.pionier.net.pl!feed.xsnews.nl!border03.ams.xsnews.nl!feeder04.ams.xsnews.nl!abp002.ams.xsnews.nl!frontend-F10-17.ams.news.kpn.nl From: Cecil Westerhof Newsgroups: comp.lang.python Subject: Re: Using Python instead of Bash Organization: Decebal Computing References: <87h9qsnckl.fsf@Equus.decebal.nl> <87382cn0bj.fsf@Equus.decebal.nl> X-Face: "(y8cC@tg_12{">GF'UXTW]FHI2wMiZNrnf'1EFQ&O#$m:f#O7+7}kR,v+Pti8=Vi/Z"g^?b"E X-Homepage: http://www.decebal.nl/ Date: Mon, 01 Jun 2015 11:25:05 +0200 Message-ID: <87eglvlr0u.fsf@Equus.decebal.nl> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:lCQRRC4hwBlhVKsOzkIFiNyd+tg= MIME-Version: 1.0 Content-Type: text/plain Lines: 31 NNTP-Posting-Host: 81.207.62.244 X-Trace: 1433151958 news.kpn.nl 20802 81.207.62.244@kpn/81.207.62.244:34673 Xref: csiph.com comp.lang.python:91645 Op Monday 1 Jun 2015 02:53 CEST schreef Dennis Lee Bieber: > On Sun, 31 May 2015 19:06:40 +0200, Cecil Westerhof > 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 > 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