471,854 Members | 1,459 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,854 software developers and data experts.

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 1799
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
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.