473,387 Members | 1,534 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 1852
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
54
by: Brandon J. Van Every | last post by:
I'm realizing I didn't frame my question well. What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump up in your chair and scream "Wow! Ruby has *that*? That is SO...
699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
19
by: Jane Austine | last post by:
As far as I know python's threading module models after Java's. However, I can't find something equivalent to Java's interrupt and isInterrupted methods, along with InterruptedException....
10
by: Andrew Dalke | last post by:
Is there an author index for the new version of the Python cookbook? As a contributor I got my comp version delivered today and my ego wanted some gratification. I couldn't find my entries. ...
32
by: David | last post by:
Hi I'm trying to teach myself python and so far to good, but I'm having a bit of trouble getting a function to work the way I think it should work. Right now I'm taking a simple program I wrote in...
8
by: MackS | last post by:
Hello! This question does not concern programming in python, but how to manage python processes. Is there a way to "name" a python process? At least on Linux, if I have two python programs...
14
by: Rochester | last post by:
Hi, I just found out that the general open file mechanism doesn't work for named pipes (fifo). Say I wrote something like this and it simply hangs python: #!/usr/bin/python import os
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.