469,342 Members | 5,295 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,342 developers. It's quick & easy.

python processes names

Hi!

How to make python programs show up by name is ps (e.g ps -e). By
default if we have many different python processes running
simultaneously, then we can only see python python python for three
different python processes. I would much rather see
first_python_program_name.py, second_python_program_name.py and
third_python_program_name.py listed by ps. Is that possible without
downloading and installing any non-standard modules?

Thank you in advance,

Best wishes,

Sylwia
Jul 18 '05 #1
3 1746
In article <f6*************************@posting.google.com> ,
Sylwia <lu********@go2.pl> wrote:
Hi!

How to make python programs show up by name is ps (e.g ps -e). By
default if we have many different python processes running
simultaneously, then we can only see python python python for three
different python processes. I would much rather see
first_python_program_name.py, second_python_program_name.py and
third_python_program_name.py listed by ps. Is that possible without
downloading and installing any non-standard modules?

Jul 18 '05 #2
djw
Sylwia wrote:
Hi!

How to make python programs show up by name is ps (e.g ps -e). By
default if we have many different python processes running
simultaneously, then we can only see python python python for three
different python processes. I would much rather see
first_python_program_name.py, second_python_program_name.py and
third_python_program_name.py listed by ps. Is that possible without
downloading and installing any non-standard modules?

Thank you in advance,

Best wishes,

Sylwia


You could use proctitle:

https://ftp.psychosis.com:4302/python/

-Don
Jul 18 '05 #3
In article <ezdcc.188803$_w.1870414@attbi_s53>,
djw <dw******@comcast.net> wrote:
Sylwia wrote:
Hi!

How to make python programs show up by name is ps (e.g ps -e). By
default if we have many different python processes running
simultaneously, then we can only see python python python for three
different python processes. I would much rather see
first_python_program_name.py, second_python_program_name.py and
third_python_program_name.py listed by ps. Is that possible without
downloading and installing any non-standard modules?

Thank you in advance,

Best wishes,

Sylwia


You could use proctitle:

https://ftp.psychosis.com:4302/python/

-Don


Two points worth mentioning about proctitle:
1. "Proctitle is a Python2.X module to manipulate
the raw 'argv[]' contents of a python process."
2. It's pure-Python.
--

Cameron Laird <cl****@phaseit.net>
Business: http://www.Phaseit.net
Jul 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

220 posts views Thread by Brandon J. Van Every | last post: by
54 posts views Thread by Brandon J. Van Every | last post: by
699 posts views Thread by mike420 | last post: by
19 posts views Thread by Jane Austine | last post: by
10 posts views Thread by Andrew Dalke | last post: by
32 posts views Thread by David | last post: by
8 posts views Thread by MackS | last post: by
14 posts views Thread by Rochester | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.