By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,547 Members | 1,429 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,547 IT Pros & Developers. It's quick & easy.

python processes names

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.