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


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

Re: Question About Command line arguments

Started byDennis <daodennis@gmail.com>
First post2011-06-10 11:05 -0700
Last post2011-06-10 11:05 -0700
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: Question About Command line arguments Dennis <daodennis@gmail.com> - 2011-06-10 11:05 -0700

#7392 — Re: Question About Command line arguments

FromDennis <daodennis@gmail.com>
Date2011-06-10 11:05 -0700
SubjectRe: Question About Command line arguments
Message-ID<mailman.92.1307729112.11593.python-list@python.org>
On Fri, Jun 10, 2011 at 11:03 AM, Dennis <daodennis@gmail.com> wrote:
> On Fri, Jun 10, 2011 at 10:58 AM, Mark Phillips
> <mark@phillipsmarketing.biz> wrote:
>> On Fri, Jun 10, 2011 at 10:41 AM, MRAB <python@mrabarnett.plus.com> wrote:
>>
>> On 10/06/2011 18:21, Mark Phillips wrote:
>
>>
> How do I write my script so it picks up argument from the output of commands
> that pipe input into my script?

I think if you want to replicate stdin behaviour try looking into
the xargs command, assuming that is available on your platform.

However reading in stdin into argv may be more elegant, but slightly
unexpected to the experienced user.

Dennis O.

[toc] | [standalone]


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


csiph-web