How do I change a process name or even a thread name in python!

Kalle Svensson kalle at gnupung.net
Mon Feb 12 18:02:20 EST 2001


[reformatted included text]
Sez Kenneth Loafman:
> Fionn Behrens wrote:
> > 
> > I am sick of seeing 10x"python" in top, without being able to say which is
> > which.
> 
> Try putting a '#! /usr/bin/python' as the first line, then running it as
> '$ ./foo.py'.  Under Linux/UNIX, that picks up the right name and
> arguments for ps aux.

As long as the magic line isn't
#!/usr/bin/env python

Peace,
  Kalle
-- 
Email: kalle at gnupung.net     | You can tune a filesystem, but you
Web: http://www.gnupung.net/ | can't tune a fish. -- man tunefs(8)
PGP fingerprint: 0C56 B171 8159 327F 1824 F5DE 74D7 80D7 BF3B B1DD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20010213/64d8fc80/attachment.sig>


More information about the Python-list mailing list