sys.argv[0] and ps aux

Heiko Wundram heikowu at ceosg.de
Sat May 15 13:02:58 EDT 2004


Hi all!

Is there some way to set sys.argv[0] on a Unix platform and have the string 
which is set show up in the output of ps aux? IIRC when I (re)set argv[0] in 
C, the newly set string pops up in ps aux (but I may be wrong here, it's a 
long time since I last programmed in C... ;)).

Any hint appreciated!

Heiko.




More information about the Python-list mailing list