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


Groups > comp.lang.python > #5283 > unrolled thread

Re: Need Assistance on this program.

Started byTim Golden <mail@timgolden.me.uk>
First post2011-05-13 08:40 +0100
Last post2011-05-13 08:40 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Need Assistance on this program. Tim Golden <mail@timgolden.me.uk> - 2011-05-13 08:40 +0100

#5283 — Re: Need Assistance on this program.

FromTim Golden <mail@timgolden.me.uk>
Date2011-05-13 08:40 +0100
SubjectRe: Need Assistance on this program.
Message-ID<mailman.1508.1305272414.9059.python-list@python.org>
On 13/05/2011 06:22, vijay swaminathan wrote:
> Hi Tim.,
>
> Thanks.. This works as I had expected.
>
> are there any documentation for the subprocess.call method? I tried
> going through the python doc but could not narrow down.

http://docs.python.org/library/subprocess.html?highlight=subprocess%20call#subprocess.call


> I just wanted to
> know how do I pass an arguement after invoking the command prompt?

Well, now, that's a whole 'nother can of worms :) The more
so since you're relying on a command prompt.

Can I suggest you read around the Popen.communicate method:

http://docs.python.org/library/subprocess.html?highlight=subprocess%20call#subprocess.Popen.communicate

and some of the examples below and try something out for yourself.
It can be a little bit fiddly, but you'll do better if you get
something up-and-running (or up-and-failing) and then ask for advice
on where you're going wrong.

TJG

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web