Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21648
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
|---|---|
| From | xliiv <tymoteusz.jankowski@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Is it technically possible to give Python option of naming process of running script? |
| Date | Thu, 15 Mar 2012 00:26:51 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 25 |
| Message-ID | <22071354.8904.1331796412001.JavaMail.geo-discussion-forums@vbkc1> (permalink) |
| References | <19118128.4791.1331736187952.JavaMail.geo-discussion-forums@vbai14> <mailman.637.1331738031.3037.python-list@python.org> <jjqfdp$9ud$1@reader1.panix.com> |
| NNTP-Posting-Host | 194.110.64.11 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Trace | posting.google.com 1331796412 20435 127.0.0.1 (15 Mar 2012 07:26:52 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Thu, 15 Mar 2012 07:26:52 +0000 (UTC) |
| In-Reply-To | <jjqfdp$9ud$1@reader1.panix.com> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=194.110.64.11; posting-account=SsjJvwoAAAAbGEB6oRibqD8UwTelug2W |
| User-Agent | G2/1.0 |
| Xref | csiph.com comp.lang.python:21648 |
Show key headers only | View raw
> >> 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. > > The question of how to set the application name comes up somewhat > regularly. It would be awfully nice if there was a way for python > applications to set their application name. It's especially useful > for daemons, and makes it much easier when you can kill them by name > instead of having to look up the PID. > > It seems like an excellent thing to add to the "os" module. > > > 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. I did google, I've played with Exemaker (it works perfect, but not py3) and i've seen questions on Stackoverflow. The thing I mean is a build feature of python to give such a name. Not 3rd part or etc. like Grant Edwards said. Is it possible?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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