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


Groups > comp.lang.python > #107492

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

From Random832 <random832@fastmail.com>
Newsgroups comp.lang.python
Subject Re: Can't run lpr from python on windows 2012 server
Date 2016-04-22 10:26 -0400
Message-ID <mailman.15.1461335217.2861.python-list@python.org> (permalink)
References <e3eb5715-8d3b-41ff-8690-4457bc02c426@googlegroups.com> <1461335207.353144.586657921.2B62BB45@webmail.messagingengine.com>

Show all headers | View raw


On Fri, Apr 22, 2016, at 10:15, loial wrote:
> I am reposting this question in a simpler form.
> 
> I can run lpr from the command prompt but not from python
> 
> os.system("notepad") works
> os.system("lpr") does not work. Basically it says lpr is not a known
> program or executable
> 
> Why can I run lpr from the windows command prompt but not from
> python(2.7)

Does lpr.exe actually physically exist in c:\windows\system32 as you
have indicated in the your earlier posts? I.e. if you actually browse
system32 with the file manager will you see lpr.exe? 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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next 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