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


Groups > comp.lang.python > #7392

Re: Question About Command line arguments

References <BANLkTi==QHd+5C=xf+2Re1Mh4V6Hk972hg@mail.gmail.com> <4DF25738.2020704@mrabarnett.plus.com> <BANLkTimHfZK=FsbSs4BOX8dU=mt2bVGV9A@mail.gmail.com> <BANLkTimq=dL8Hg5uBt1dgLAOPcZCF_S_dQ@mail.gmail.com>
Date 2011-06-10 11:05 -0700
Subject Re: Question About Command line arguments
From Dennis <daodennis@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.92.1307729112.11593.python-list@python.org> (permalink)

Show all headers | View raw


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.

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


Thread

Re: Question About Command line arguments Dennis <daodennis@gmail.com> - 2011-06-10 11:05 -0700

csiph-web