Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #56856
| Path | csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <mailinglists@xgm.de> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'interpreter': 0.05; 'arguments': 0.09; 'output,': 0.09; 'received:localnet': 0.09; 'skip:$ 30': 0.09; 'skip:/ 10': 0.09; 'strings.': 0.09; 'subject:script': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '1:13': 0.16; 'adjacent': 0.16; 'comma,': 0.16; 'proc': 0.16; 'right:': 0.16; 'subject:Problem': 0.16; 'wrote:': 0.18; 'help.': 0.21; 'input': 0.22; 'cc:addr:python.org': 0.22; 'header :User-Agent:1': 0.23; 'oktober': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'source': 0.25; 'script': 0.25; '15,': 0.26; 'skip:" 20': 0.27; 'header:In-Reply-To:1': 0.27; 'michael': 0.29; 'url:mailman': 0.30; 'perl': 0.31; 'file': 0.32; 'thanks!': 0.32; 'open': 0.33; 'url:python': 0.33; 'skip:# 10': 0.33; 'subject:with': 0.35; "can't": 0.35; 'something': 0.35; 'received:google.com': 0.35; 'url:listinfo': 0.36; 'charset:us- ascii': 0.36; 'url:org': 0.36; 'skip:[ 10': 0.38; 'pm,': 0.38; 'does': 0.39; 'skip:p 20': 0.39; 'url:mail': 0.40; 'how': 0.40; 'read': 0.60; "you're": 0.61; 'such': 0.63; 'to:addr:gmail.com': 0.65; 'florian': 0.84; '2013,': 0.91; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=xgm.de; s=google; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding:content-type; bh=JqBncI1yooIEpk2BS3ZFJcqzXhzgx4+lSpZ7uZjR8bc=; b=kQ1RPgtTtMhRRlF4b5PxQHNt03KTUV4lAiDdQsVEHg4v/vpXmwx0W7Y5VZTdmOO1vC 7Kfa7wVZn3gr5SIDFpKKjL5SwTfVXPGtoGbORk2iMSr1oLjMKrUNHW6gkl9nzVEOm6TP LdjuzgeS/lkvtL+JSkZvMqSD9ObwqIm0G3HmA= |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=JqBncI1yooIEpk2BS3ZFJcqzXhzgx4+lSpZ7uZjR8bc=; b=JYvxp+4w3QFux5EsB4iiEoPcRViPtTwe0ZR4+FZZE1K3Gq4ik/Amiwtcy2XjnI7Dcr jTaa2akrtbGPxypMSf2Gc4H1XjVVOlEbFOmpv8CAzXfIsPBLv1eIZ4NB91NQXsdnHDMV jEOQUtCYHeZV7NLPHWPkgcYR64IMMjazoC33e0ETH0cIhJ2li/eOgVqPUpqqdsXzqkZc cwlE03jI7ru2/GrYAzf3mLn9CjVPj6wzIgRshVBuKnuUdhT32eouiZH9G0HqCY5PTuVE SzUs7lpndjEfE8FwukPtaVRXZOKqZ+Oxh5XaI2kYvmKc7YO3zBnmY8ks4s/YKPjTEiKz 05kg== |
| X-Gm-Message-State | ALoCoQm53Bro5QQk2AbFQva80tHtRK/dEkVTz5R1naR+DUcLY+39j2cLO1v37wfYSRJy7HdMAS0z |
| X-Received | by 10.204.60.66 with SMTP id o2mr36963525bkh.22.1381858557414; Tue, 15 Oct 2013 10:35:57 -0700 (PDT) |
| From | Florian Lindner <mailinglists@xgm.de> |
| To | Michael Speer <knomenet@gmail.com> |
| Subject | Re: Problem calling script with arguments |
| Date | Tue, 15 Oct 2013 19:35:44 +0200 |
| User-Agent | KMail/4.11.2 (Linux/3.11.5-1-ARCH; KDE/4.11.2; x86_64; ; ) |
| In-Reply-To | <CABpSurAOxBHT2aCP8L+KHF1j-3RW73+J+nU59qYGBtTKNyB3xA@mail.gmail.com> |
| References | <1733191.dIe2MlMTjU@horus> <CABpSurAOxBHT2aCP8L+KHF1j-3RW73+J+nU59qYGBtTKNyB3xA@mail.gmail.com> |
| MIME-Version | 1.0 |
| Content-Transfer-Encoding | 7Bit |
| Content-Type | text/plain; charset="us-ascii" |
| Cc | python-list@python.org |
| 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 | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1101.1381858558.18130.python-list@python.org> (permalink) |
| Lines | 47 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1381858558 news.xs4all.nl 15925 [2001:888:2000:d::a6]:58968 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:56856 |
Show key headers only | View raw
Am Dienstag, 15. Oktober 2013, 13:18:17 schrieb Michael Speer: > > "/usr/sbin/ftpasswd" "--hash" > > You're missing a comma, and python automatically concatenates adjacent > strings. Damn! Thanks! > > On Tue, Oct 15, 2013 at 1:13 PM, Florian Lindner <mailinglists@xgm.de>wrote: > > Hello, > > > > I have a 3rd party perl script: > > head -n 1 /usr/sbin/ftpasswd > > > > #!/usr/bin/perl > > > > I want to write data to stdin and read from stdout: > > > > proc = Popen( ["/usr/bin/perl", "/usr/sbin/ftpasswd" "--hash", "--stdin"], > > stdout=PIPE, stdin=PIPE) > > > > output, input = proc.communicate(pwd) > > return output.strip() > > > > Since pwd comes from a non-trusted source I don't want to use shell=True. > > > > The arguments to the perl interpreter do not seem to right: > > > > Can't open perl script "/usr/sbin/ftpasswd--hash": No such file or > > directory > > > > Adding a leading " " to "--hash" does not help. > > > > How can I use that script and achieve something like > > > > # echo "123" | ftpasswd --hash --stdin > > ftpasswd: $1$8BuLAqCl$y/URBN/OCSLsKtnu8nFHH0 > > > > Thanks! > > > > Florian > > -- > > https://mail.python.org/mailman/listinfo/python-list
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Problem calling script with arguments Florian Lindner <mailinglists@xgm.de> - 2013-10-15 19:35 +0200
csiph-web