python processes names

Holger Joukl Holger.Joukl at LBBW.de
Mon Apr 5 07:50:37 EDT 2004


>>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.

You might want to make the scripts executable by
1 .chmod u+x <file>.py
2. putting s.th. like
#! /usr/local/bin/python
as the first line of the script files (with your appropriate python
interpreter path) and
start them directly from the command line with ./<script>.py

But be aware you might still not see the full progname with ps -e (see
manpage).
Try also ps -ef which gives a longer output.
In our environment we also have some different ps program installed which
gives
you the full cmd for a process with
/usr/ucb/ps -auxww|grep <username>
but I honestly do not know where that comes from, etc.

hth,
  Holger

Der Inhalt dieser E-Mail ist vertraulich. Falls Sie nicht der angegebene
Empfänger sind oder falls diese E-Mail irrtümlich an Sie adressiert wurde,
verständigen Sie bitte den Absender sofort und löschen Sie die E-Mail
sodann. Das unerlaubte Kopieren sowie die unbefugte Übermittlung sind nicht
gestattet. Die Sicherheit von Übermittlungen per E-Mail kann nicht
garantiert werden. Falls Sie eine Bestätigung wünschen, fordern Sie bitte
den Inhalt der E-Mail als Hardcopy an.

The contents of this  e-mail are confidential. If you are not the named
addressee or if this transmission has been addressed to you in error,
please notify the sender immediately and then delete this e-mail.  Any
unauthorized copying and transmission is forbidden. E-Mail transmission
cannot be guaranteed to be secure. If verification is required, please
request a hard copy version.





More information about the Python-list mailing list