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


Groups > comp.lang.python > #21181

Re: The original command python line

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <chris@rebertia.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.044
X-Spam-Evidence '*H*': 0.91; '*S*': 0.00; 'skip:` 10': 0.07; 'python': 0.08; 'subject:python': 0.10; '*really*': 0.16; 'subject:command': 0.16; 'url:documentation': 0.16; 'cc:addr :python-list': 0.16; 'wrote:': 0.18; 'cheers,': 0.20; 'cc:no real name:2**0': 0.21; 'linux,': 0.21; 'header:In-Reply-To:1': 0.22; 'command': 0.24; 'sat,': 0.25; 'cc:2**0': 0.26; 'url:code': 0.28; 'message-id:@mail.gmail.com': 0.29; 'cc:addr:python.org': 0.29; 'pm,': 0.29; 'url:wiki': 0.29; 'chris': 0.30; 'received:209.85.214': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.38; 'some': 0.38; 'received:209': 0.39; 'from:': 0.40; 'header:Received:6': 0.61; 'offers': 0.62; 'url:p': 0.62; 'further': 0.64; 'subject:The': 0.69; 'skip:\xc2 10': 0.74; 'sender:addr:chris': 0.84; 'subject:original': 0.84
Received-SPF pass (google.com: domain of chris@rebertia.com designates 10.204.136.207 as permitted sender) client-ip=10.204.136.207;
Authentication-Results mr.google.com; spf=pass (google.com: domain of chris@rebertia.com designates 10.204.136.207 as permitted sender) smtp.mail=chris@rebertia.com; dkim=pass header.i=chris@rebertia.com
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=rc5VDb1f4OI3pO4JMW49+YypuOyHqJchi9RmUqr3yXg=; b=M8wIAAoh3rRF6n92fjGXGfweiORbFGWXrD7M8uB3/9vY/zkjcBuo5R4KehBgzHiUx5 G/1+LDMyf+ZoouKKo93dwWNEf8WSuwn4btWfVvHUZYG5cAatx2X/Krcghq+AdhcH/nNY UwRz5RR3+4S2KkWFLqFWFEoWh/AudcQ1st5ME=
MIME-Version 1.0
Sender chris@rebertia.com
In-Reply-To <CAMZYqRS=kSo7LG5i26E0qgfXxovKvjBy4XiTEpquw4H1OVV2dg@mail.gmail.com>
References <4obb29-os3.ln1@archaeopteryx.softver.org.mk> <CAMZYqRS=kSo7LG5i26E0qgfXxovKvjBy4XiTEpquw4H1OVV2dg@mail.gmail.com>
Date Sat, 3 Mar 2012 21:57:42 -0800
X-Google-Sender-Auth Cfd_AUS1DD65yHw8ePxRK5bGIeY
Subject Re: The original command python line
From Chris Rebert <clp2@rebertia.com>
To Damjan Georgievski <gdamjan@gmail.com>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-Gm-Message-State ALoCoQmtvoJcxF7J/Lr+66kEgHy9aKX07efxBD+EMaGDf+mDyieAy+aIdGF3NKEJdtaF/M73F8yE
Cc python-list@python.org
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.370.1330840664.3037.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1330840664 news.xs4all.nl 6895 [2001:888:2000:d::a6]:50246
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:21181

Show key headers only | View raw


On Sat, Mar 3, 2012 at 9:48 PM, Chris Rebert <clp2@rebertia.com> wrote:
> On Sat, Mar 3, 2012 at 9:38 PM, Damjan Georgievski <gdamjan@gmail.com> wrote:
>> How can I get the *really* original command line that started my python
>> interpreter?
<snip>
> On Linux, you can read from:
>    /proc/<PID here>/cmdline
> to get the null-delimited "command line".

After some further searching:
psutil offers `Process.cmdline` cross-platform;
see http://code.google.com/p/psutil/wiki/Documentation

Cheers,
Chris

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


Thread

The original command python line Damjan Georgievski <gdamjan@gmail.com> - 2012-03-04 06:38 +0100
  Re: The original python command line Damjan Georgievski <gdamjan@gmail.com> - 2012-03-04 06:52 +0100
  Re: The original command python line Chris Rebert <clp2@rebertia.com> - 2012-03-03 21:48 -0800
    Re: The original command python line Grant Edwards <invalid@invalid.invalid> - 2012-03-04 14:34 +0000
  Re: The original command python line Chris Rebert <clp2@rebertia.com> - 2012-03-03 21:57 -0800
    Re: The original command python line Damjan Georgievski <gdamjan@gmail.com> - 2012-03-04 07:20 +0100
      Re: The original command python line Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-03-04 02:19 -0500

csiph-web