Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #42490
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!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.080 |
| X-Spam-Evidence | '*H*': 0.84; '*S*': 0.00; 'puts': 0.07; 'command.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'splits': 0.16; 'url:submit': 0.16; 'wrote:': 0.18; "skip:' 30": 0.19; 'manual': 0.22; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'that.': 0.31; 'quotes': 0.31; 'entirely': 0.33; 'problem': 0.35; 'subject:with': 0.35; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'received:google.com': 0.35; 'doing': 0.36; 'received:209': 0.37; 'version,': 0.38; 'to:addr:python- list': 0.38; 'url:01': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; "you're": 0.61; 'url:cgi-bin': 0.65; 'url:%21': 0.84; 'url:log': 0.84; '2013': 0.98 |
| 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=aOKU0b8xSV6Kv+a53TEasbNyOYBjQRKt7kF5yy1Xkgs=; b=flcRnKOJfUb2Y3rlBShkUFo0YhloFHrho4G8Ir5SaYwB8AQxxV+DzVrN877ZGeQPyF O9btTGt8/osJvc+oRDKvG+mq/S7xpczXMA8RRO23onBfS+7JDrMlg6jWhM0ZwoCX0Tcc T12ZISC7BwMvHIZeOMmH9N9PcJ1IbC68yM2ufWnpK+e5cQ4xLdJwa1FOsw4LJS4rdJAL Fuw/DF1RGYdQiZ308owEuE4qtT8pGUhXjr7vFw5cEpM6vcTfKtUew5o4K8Fct2mhzacu SRT5xvbnXnBUvoAm2v5vTtkpMRRRVQtPzlXXg5COIn0kQfKd5m0OpFN7Sdx5mX09Pyjb 3yPQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.52.37.109 with SMTP id x13mr8980125vdj.10.1364844792366; Mon, 01 Apr 2013 12:33:12 -0700 (PDT) |
| In-Reply-To | <0c9717ca-52dd-49ce-8102-e1432883858a@googlegroups.com> |
| References | <0c9717ca-52dd-49ce-8102-e1432883858a@googlegroups.com> |
| Date | Tue, 2 Apr 2013 06:33:12 +1100 |
| Subject | Re: os.system() with imbeded quotes on centos |
| 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.13.1364844794.17481.python-list@python.org> (permalink) |
| Lines | 14 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1364844794 news.xs4all.nl 6978 [2001:888:2000:d::a6]:41439 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:42490 |
Show key headers only | View raw
On Tue, Apr 2, 2013 at 6:22 AM, <cevyne@gmail.com> wrote: > var1 = 'lynx -dump http://' + someip + '/cgi-bin/xxxx.log&.submit=+++Go%21+++ > junk' > lynx -dump 'http://192.168.01.01/cgi-bin/xxxx.log&.submit=+++Go%21+++ > junk' The problem is the &, which splits the command. Note how your manual execution puts single quotes around just the URL; in the other version, you're not doing that. (Though I'm not entirely sure why your > junk is inside the quotes - is that an error?) Try this: var1 = 'lynx -dump "http://' + someip + '/cgi-bin/xxxx.log&.submit=+++Go%21+++" > junk' ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
os.system() with imbeded quotes on centos cevyne@gmail.com - 2013-04-01 12:22 -0700
Re: os.system() with imbeded quotes on centos Chris Angelico <rosuav@gmail.com> - 2013-04-02 06:33 +1100
Re: os.system() with imbeded quotes on centos John Gordon <gordon@panix.com> - 2013-04-01 20:26 +0000
Re: os.system() with imbeded quotes on centos Cameron Simpson <cs@zip.com.au> - 2013-04-06 09:00 +1100
Re: os.system() with imbeded quotes on centos Chris Rebert <clp2@rebertia.com> - 2013-04-05 16:36 -0700
csiph-web