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: 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Thu, Mar 15, 2012 at 1:43 AM, xliiv 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