Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #7392
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <daodennis@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.006 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'mrab': 0.05; 'unexpected': 0.07; 'elegant,': 0.09; 'received:mail-bw0-f46.google.com': 0.09; 'output': 0.11; 'am,': 0.14; 'wrote:': 0.14; 'phillips': 0.16; 'picks': 0.16; 'received:209.85.214.46': 0.16; 'stdin': 0.16; 'xargs': 0.16; 'argument': 0.16; 'input': 0.17; 'slightly': 0.19; 'header:In-Reply-To:1': 0.21; 'fri,': 0.23; 'subject:Question': 0.25; 'user.': 0.26; 'script': 0.27; 'message-id:@mail.gmail.com': 0.28; 'received:209.85.214': 0.28; 'to:addr:python-list': 0.33; 'received:google.com': 0.37; 'received:209.85': 0.37; 'assuming': 0.37; 'think': 0.38; 'but': 0.38; 'subject:: ': 0.38; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'more': 0.60; 'your': 0.60; 'subject:About': 0.68; 'subject:line': 0.73; 'dennis': 0.77; 'replicate': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=N33kGHWc4AWjIbUrnimXsbiYrqs2P6rYcKCEp/paBRI=; b=YJeQFDsWtXFRFmmsTz7b9edLqz+v7A3bFFFmoVlPYlFZMtcgNe6yPb96iEjexZOGjp dXBrMaQHDd14gl2jYIPApUaf4ngbEamKf+QrKTLKSx5aQ5NUp9L4tf/L92SHcuD4laH5 LlWAiQn4NDRY4jFe/2E1C/+1Pfy7Jd66KFPzU= |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=QtQfFFgYVcAnwy4HAx4aU0XwYPqwqrrhdu477sCDuPBdJTFsDTycMLj73ZIjiCqmTW w0czvx8HxH40KGR4OZ3XTcpQjXsfmvdZ/8z/aQEEscNxQ2zi4NU03P5n7Ayu7Nha3XgT VTRT/vghOYjJrakm07Hge+u0hLXChxbbja1sA= |
| MIME-Version | 1.0 |
| In-Reply-To | <BANLkTimq=dL8Hg5uBt1dgLAOPcZCF_S_dQ@mail.gmail.com> |
| 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 | Fri, 10 Jun 2011 11:05:11 -0700 |
| Subject | Re: Question About Command line arguments |
| From | Dennis <daodennis@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.12 |
| 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.92.1307729112.11593.python-list@python.org> (permalink) |
| Lines | 18 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1307729113 news.xs4all.nl 49184 [::ffff:82.94.164.166]:34720 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:7392 |
Show key headers only | 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
Re: Question About Command line arguments Dennis <daodennis@gmail.com> - 2011-06-10 11:05 -0700
csiph-web