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


Groups > comp.lang.python > #37235

Re: Windows subprocess.call problem

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:skip:s 10': 0.05; 'filename': 0.07; 'filenames': 0.07; 'subject:Windows': 0.09; '22,': 0.09; 'invocation': 0.09; '12:04': 0.16; 'file).': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'interprets': 0.16; 'parameters,': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'windows': 0.19; 'parameters': 0.20; 'written': 0.20; 'assuming': 0.22; 'ones.': 0.22; 'subject:problem': 0.22; 'pass': 0.25; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'separate': 0.27; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; 'post': 0.28; 'spaces': 0.29; 'though.': 0.29; '(and': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'child': 0.36; 'useful': 0.36; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'worth': 0.63; 'talking': 0.66; '2013': 0.84; 'brain,': 0.84; 'notepad,': 0.84; 'quote,': 0.84; 'window,': 0.84; 'angel': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=V+Udm0unodtzCNTgJY6UXTrjqjwSlF3LtsT0OrC1utY=; b=G0BFkEGezXUrB1QZ9tVqWt+pQUCYsLQvCM0zAEypw1/848QeJBvqy85e8EBPyf7W4v B0x73u+ZSspCnLN3u45r2UWd8wmrjVv98emL5AbPQUsB1NBPJsftliE6B0AG1BpX2KK8 McxyomHpGLVteWaNPa8tXz4pjhrhO4mcEUWt6a10zTbCAkYW4FFJj5lOQ+LYJk6wAwZk Flzg/l6Yt6jQ87JstvpkjHtvyMcqFTqfYT8vsi3PvrFyWvi2o8PXaC57LU2lcFfoaIgE UlxDA2tdrL8e0HHMm4+tTZ0fpzJaIHVVT30NjIJZlY0brHDLU2o0EciZoohf0RuL5x5a buRQ==
MIME-Version 1.0
X-Received by 10.52.29.40 with SMTP id g8mr18790922vdh.58.1358811814410; Mon, 21 Jan 2013 15:43:34 -0800 (PST)
In-Reply-To <50FD3CCD.4060707@davea.name>
References <CAAPnF_XoeAQLqOXSWVF05sazUy6jtqSCSv18r7SL+18AqqbwmQ@mail.gmail.com> <50FD3CCD.4060707@davea.name>
Date Tue, 22 Jan 2013 10:43:34 +1100
Subject Re: Windows subprocess.call problem
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.771.1358811817.2939.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1358811817 news.xs4all.nl 6888 [2001:888:2000:d::a6]:47146
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:37235

Show key headers only | View raw


On Tue, Jan 22, 2013 at 12:04 AM, Dave Angel <d@davea.name> wrote:
> Why not just pass all the filenames as parameters in one invocation of
> notepad?  Assuming Notepad is written reasonably, that'll give it all to you
> in one window, instead of opening many separate ones.

The OP is talking about Windows Notepad. Assuming it to be, quote,
"written reasonably", unquote, is like assuming that an elected
politician has a brain, or that a young child will like broccoli, or
that a post from 88888 Dihedral will be useful and intelligible.

Also, I just tested Notepad, and if it's given multiple parameters, it
interprets them as a single filename with spaces in it (and then
offers to create that file). Was worth a try though.

ChrisA

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


Thread

Re: Windows subprocess.call problem Chris Angelico <rosuav@gmail.com> - 2013-01-22 10:43 +1100

csiph-web