S
Swaroop C H
Hi,
Is there a way to set the program name in Python, similar to $0 in
Perl?
$0 Contains the name of the program being executed. On some oper-
ating systems assigning to "$0" modifies the argument
area that
the ps program sees. This is more useful as a way of
indicat-
ing the current program state than it is for hiding the
program
you're running. (Mnemonic: same as sh and ksh.)
Thanks!
Swaroop
www.swaroopch.info
Is there a way to set the program name in Python, similar to $0 in
Perl?
From `man perlvar`:
$0 Contains the name of the program being executed. On some oper-
ating systems assigning to "$0" modifies the argument
area that
the ps program sees. This is more useful as a way of
indicat-
ing the current program state than it is for hiding the
program
you're running. (Mnemonic: same as sh and ksh.)
Thanks!
Swaroop
www.swaroopch.info