Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Random832 Newsgroups: comp.lang.python Subject: Re: Can't run lpr from python on windows 2012 server Date: Fri, 22 Apr 2016 10:26:47 -0400 Lines: 17 Message-ID: References: <1461335207.353144.586657921.2B62BB45@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 8MdL+dy3/GF9U6Iye2EC4AcpNlzPP1rEF9343KSjBILQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'executable': 0.07; 'indicated': 0.07; '22,': 0.09; 'received:internal': 0.09; 'python': 0.10; 'subject:python': 0.14; 'command,': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.44': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:compute4.internal': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'subject:run': 0.16; 'subject:server': 0.16; 'subject:windows': 0.16; 'wrote:': 0.16; 'basically': 0.18; 'windows': 0.20; 'simpler': 0.22; 'trying': 0.22; 'header:In- Reply-To:1': 0.24; 'command': 0.26; 'rest': 0.26; 'earlier': 0.27; 'fri,': 0.27; 'question': 0.27; "we're": 0.30; 'work.': 0.30; 'says': 0.32; 'run': 0.33; 'problem': 0.33; 'file': 0.34; 'exist': 0.35; 'i.e.': 0.35; 'problem.': 0.35; 'but': 0.36; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'received:66': 0.38; 'skip:o 20': 0.38; 'means': 0.39; 'why': 0.39; 'does': 0.39; 'subject:from': 0.39; 'to:addr:python.org': 0.40; 'your': 0.60; 'header:Message-Id:1': 0.61; 'prompt': 0.79; 'browse': 0.96 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=3MR/dLH80VsZ4UNAlHRtnPPjCes=; b=A2V2He rQonxp1Geh9k1qwArVcJZebViZ8+K2xFfeqMD/GbqPnZ8PD54Idj9tpNNS/sJqhs NDgkd5YklCYCYVhqRx2etMf9ObENhdWBKoMBx4kdjNYgvP7CG7WTY9exY0oo04ZM 0SDEE+KSQIdiSw3KtTbCqaQwBtDf+IQd6dgXU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=3MR/dLH80VsZ4UN AlHRtnPPjCes=; b=h/4cz4Oq6R2j/GvAWvOitkpkHOE2EDntQDKwPA4dLRY9nJ4 kG2nRzPiVd3dywkp+RHN8dBO0he+/aXD9yZkJtMDcMR3ObccJwDawiYQsqXn0mff gPlM+DaBQ74EUY824tJS9NTN0JGIXYp1sLyXUsxKXG5mBwQrD44g95cX9How= X-Sasl-Enc: pwioGuWGDgNZjwjTk//+OBPDC40DvaMwTR57A1ByHIM0 1461335207 X-Mailer: MessagingEngine.com Webmail Interface - ajax-76f1c811 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <1461335207.353144.586657921.2B62BB45@webmail.messagingengine.com> X-Mailman-Original-References: Xref: csiph.com comp.lang.python:107492 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.