Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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; 'subject:process': 0.07; 'python': 0.08; 'scripts': 0.09; '>>>>': 0.09; 'subject:script': 0.09; 'url:github': 0.09; 'worked.': 0.09; 'argument': 0.15; 'posix': 0.16; 'received:192.168.1.104': 0.16; 'subject: \n ': 0.16; 'subject:possible': 0.16; 'cc:addr:python-list': 0.16; 'url:bugs': 0.17; 'wrote:': 0.18; '>>>': 0.18; 'wrap': 0.18; 'seems': 0.20; 'to:2**1': 0.21; 'tracker': 0.21; 'header:In-Reply-To:1': 0.22; 'opens': 0.23; 'candidate': 0.26; 'windows': 0.26; 'cc:2**0': 0.26; 'module': 0.26; '(see': 0.28; 'script': 0.28; 'module.': 0.29; 'cc:addr:python.org': 0.29; 'pm,': 0.29; 'subject:?': 0.31; 'usual': 0.32; 'there': 0.33; 'header:User-Agent:1': 0.33; 'named': 0.33; 'object': 0.33; 'anything': 0.34; 'someone': 0.34; 'something': 0.35; 'project': 0.35; 'url:python': 0.35; 'issue': 0.37; 'but': 0.37; 'received:192': 0.38; 'could': 0.38; 'think': 0.38; 'should': 0.38; 'received:192.168.1': 0.39; 'url:org': 0.39; 'called': 0.40; 'saw': 0.66; 'header:Reply-To:1': 0.70; 'presents': 0.71; 'reply-to:no real name:2**0': 0.72; 'denied:': 0.84; 'trick,': 0.84; 'subject:\t': 0.93; 'enhancement': 0.96 Date: Wed, 14 Mar 2012 22:15:28 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.27) Gecko/20120216 Thunderbird/3.1.19 MIME-Version: 1.0 To: "Prasad, Ramit" Subject: Re: Is it technically possible to give Python option of naming process of running script? References: <19118128.4791.1331736187952.JavaMail.geo-discussion-forums@vbai14> <5B80DD153D7D744689F57F4FB69AF474026A27FC@SBECMX008.exchad.jpmchase.net> <5B80DD153D7D744689F57F4FB69AF474026A280E@SBECMX008.exchad.jpmchase.net> In-Reply-To: <5B80DD153D7D744689F57F4FB69AF474026A280E@SBECMX008.exchad.jpmchase.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:EH/MhIKAZseDzAK+QsuqkzxrdNjPjkKMj7uc2zHSj3z YXy7AnG37DFZXOBPWti9GTfgJSBqz+r3N7vgy2zB2jVm6y7tBo Z9PyuJETMOvN9As6W/vywNZAIAajI+yzD1419W6GlnGXQ9TyrA EoTWMou4CpicFT2JZNWzeJb1jphNXDfSONvuQ9mmthddP08a2C cm9HK1/Qh/aAQIogm8gx5Grualz8rPwL+FoRQ3xcA2DP/UnWYb YF6aLf7DliNiP61rIiDmoAQrkoyugB/SDECBKEtNS8oApWJHHW rfz5kczY5J3hJOVEjODlzNF/verks3lX0V26VcsMsmU6pZOIw= = Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: d@davea.name 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1331777775 news.xs4all.nl 6944 [2001:888:2000:d::a6]:39130 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21643 On 03/14/2012 01:27 PM, Prasad, Ramit wrote: >>>> It seems like an excellent thing to add to the "os" module. >>> If 'prctl' is a standard POSIX system call, then it should be a >>> candidate for inclusion in the os module if someone opens a tracker >>> enhancement issue and presents an argument in favor. >> >> I think this request was already denied: http://bugs.python.org/issue5672 > Also take a look at: https://github.com/dvarrazzo/py-setproctitle > Though since they just create a Named Object in Windows, I am not sure > it would work for something like killall. > > There is/was a project called exemaker for Windows. (see Pypi for link). I don't use Windows any more, but it was a nice trick, when it worked. Not all python scripts could be wrapped in it, but basically it let you wrap a python script in a tiny Windows program which launched the usual python dll's. You could call it anything you liked, and that's what the task manager saw as the process name. -- DaveA