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


Groups > comp.lang.python > #21608

Re: Is it technically possible to give Python option of naming process of running script?

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'pypi': 0.04; 'subject:Python': 0.05; 'distinction': 0.07; 'function,': 0.07; 'subject:process': 0.07; 'python': 0.08; 'subject:script': 0.09; 'am,': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'overflow': 0.16; 'subject: \n ': 0.16; 'subject:possible': 0.16; 'wrote:': 0.18; 'linux,': 0.21; 'received:209.85.210.174': 0.21; 'received:mail-iy0-f174.google.com': 0.21; 'header:In-Reply- To:1': 0.22; 'though.': 0.23; 'asked': 0.24; 'stack': 0.24; 'windows': 0.26; 'module': 0.26; 'work.': 0.27; 'function': 0.27; 'looks': 0.27; 'value.': 0.28; 'message-id:@mail.gmail.com': 0.29; 'constant': 0.29; 'weird': 0.29; "skip:' 10": 0.29; 'subject:?': 0.31; 'thu,': 0.32; "i've": 0.32; 'idea': 0.32; "isn't": 0.33; 'to:addr:python-list': 0.35; 'google': 0.35; 'but': 0.37; 'shows': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'several': 0.38; 'received:209': 0.39; 'might': 0.40; 'to:addr:python.org': 0.40; 'your': 0.61; 'friend,': 0.64; 'examination': 0.84; 'job;': 0.84; 'what.': 0.84; 'ready,': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=TT1OVWY4zZ1NTdKo3otM7Akh5MekW4iUT4UIP8n0YBE=; b=bTbC3ZAMY268aJDkOGybGYTATLM7tx1h3SWqEHI1UuDldMoLkhmG7WRX8NZlrz+K0Y HBbv+b+PTzxUdfZnFsody855Y7XVqS1o/YYWJQC64aJ3vp4P+oeI3uXftomCWU0jSDyL ahnN91k7rpnUXOIHXreg9FJjku/wskWLDlz+eDISx8NAgv8eJxXTvew2IseCTGoRtsn1 /4z4msbG+2BTDkl8nkirRxj5CodW7DxlkqWjUAgJW7+wKPAi/o8eRsmc3okVDERqaCTb kM4MwN/TseT9uaS1iMt+oXFAtFJoh5DFsM90EH5GAB/oRy5d7QskKCQzWamj7bb676q1 241Q==
MIME-Version 1.0
In-Reply-To <19118128.4791.1331736187952.JavaMail.geo-discussion-forums@vbai14>
References <19118128.4791.1331736187952.JavaMail.geo-discussion-forums@vbai14>
Date Thu, 15 Mar 2012 02:13:46 +1100
Subject Re: Is it technically possible to give Python option of naming process of running script?
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.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.637.1331738031.3037.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1331738031 news.xs4all.nl 6910 [2001:888:2000:d::a6]:38592
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:21608

Show key headers only | View raw


On Thu, Mar 15, 2012 at 1:43 AM, xliiv <tymoteusz.jankowski@gmail.com> wrote:
> Like the topic.. .
> I use Python a lot, both Windows and Linux, and it's little weird to have many python process without fast distinction which is what.

I've no idea if it's even possible on Windows. On Linux, what you want
is the prctl function, which (AFAIK) isn't directly available.

Google is your friend, though. Question's already been asked on Stack
Overflow and such, and has a few answers. Nothing that looks
cut-and-dried ready, but several that might work. Look for 'prctl' and
'PR_SET_NAME', which are the C-level function and constant that do the
job; a cursory examination of PyPI shows a module with prctl in the
name, so that may be of value.

ChrisA

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


Thread

Is it technically possible to give Python option of naming process of running script? xliiv <tymoteusz.jankowski@gmail.com> - 2012-03-14 07:43 -0700
  Re: Is it technically possible to give Python option of naming process of running script? Chris Angelico <rosuav@gmail.com> - 2012-03-15 02:13 +1100
    Re: Is it technically possible to give Python option of naming process of running script? Grant Edwards <invalid@invalid.invalid> - 2012-03-14 16:02 +0000
      Re: Is it technically possible to give Python option of naming process of running script? Terry Reedy <tjreedy@udel.edu> - 2012-03-14 13:13 -0400
        Re: Is it technically possible to give Python option of naming process of running script? Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2012-03-14 18:34 +0100
      RE: Is it technically possible to give Python option of naming process of running script? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-03-14 17:20 +0000
      RE: Is it technically possible to give Python option of naming process of running script? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-03-14 17:27 +0000
      Re: Is it technically possible to give Python option of naming process of running script? Dave Angel <d@davea.name> - 2012-03-14 22:15 -0400
      Re: Is it technically possible to give Python option of naming process of running script? xliiv <tymoteusz.jankowski@gmail.com> - 2012-03-15 00:24 -0700
      Re: Is it technically possible to give Python option of naming process of running script? xliiv <tymoteusz.jankowski@gmail.com> - 2012-03-15 00:26 -0700
        Re: Is it technically possible to give Python option of naming process of running script? Dave Angel <d@davea.name> - 2012-03-15 12:04 -0400
          Re: Is it technically possible to give Python option of naming process of running script? Grant Edwards <invalid@invalid.invalid> - 2012-03-15 18:39 +0000
            Re: Is it technically possible to give Python option of naming process of running script? Dave Angel <d@davea.name> - 2012-03-15 22:00 -0400
            Re: Is it technically possible to give Python option of naming process of running script? Chris Angelico <rosuav@gmail.com> - 2012-03-16 14:14 +1100
              Re: Is it technically possible to give Python option of naming process of running script? xliiv <tymoteusz.jankowski@gmail.com> - 2012-03-16 01:19 -0700
              Re: Is it technically possible to give Python option of naming process of running script? xliiv <tymoteusz.jankowski@gmail.com> - 2012-03-16 01:19 -0700
              Re: Is it technically possible to give Python option of naming process of running script? Grant Edwards <invalid@invalid.invalid> - 2012-03-16 13:27 +0000
                RE: Is it technically possible to give Python option of naming process of running script? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-03-16 20:14 +0000
                Re: Is it technically possible to give Python option of naming process of running script? Grant Edwards <invalid@invalid.invalid> - 2012-03-16 20:54 +0000
  Re: Is it technically possible to give Python option of naming process of running script? Adam  Tauno Williams <awilliam@whitemice.org> - 2012-03-24 11:24 -0400

csiph-web