Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #107502

Re: Can't run lpr from python on windows 2012 server

From eryk sun <eryksun@gmail.com>
Newsgroups comp.lang.python
Subject Re: Can't run lpr from python on windows 2012 server
Date 2016-04-22 12:17 -0500
Message-ID <mailman.20.1461345477.2861.python-list@python.org> (permalink)
References <e3eb5715-8d3b-41ff-8690-4457bc02c426@googlegroups.com> <1461335207.353144.586657921.2B62BB45@webmail.messagingengine.com> <CACL+1atVJwAtfBDZ1V+rF36bbzYB8NuehdNTwhCdAyfDJ6e=pA@mail.gmail.com>

Show all headers | View raw


On Fri, Apr 22, 2016 at 9:26 AM, Random832 <random832@fastmail.com> wrote:
> The problem with your question is that it's not a standard command, so none
> of the rest of us have it, which means we're half-blind trying to find your problem.

lpr is a Windows feature that you may be able to enable. It's under
"Print and Document Services" -> "LPR Port Monitor". It only installs
a 64-bit build, which is why loial is having trouble running it from
32-bit Python. But in Windows 7+ (Server 2008 R2), a 32-bit process
can use the virtual "%SystemRoot%\SysNative" directory to access files
in the native System32 directory. I can run lpr.exe from 32-bit Python
using this method.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Can't run lpr from python on windows 2012 server loial <jldunn2000@gmail.com> - 2016-04-22 07:15 -0700
  Re: Can't run lpr from python on windows 2012 server Random832 <random832@fastmail.com> - 2016-04-22 10:26 -0400
    Re: Can't run lpr from python on windows 2012 server loial <jldunn2000@gmail.com> - 2016-04-22 08:06 -0700
      Re: Can't run lpr from python on windows 2012 server Random832 <random832@fastmail.com> - 2016-04-22 12:02 -0400
  Re: Can't run lpr from python on windows 2012 server eryk sun <eryksun@gmail.com> - 2016-04-22 12:17 -0500

csiph-web