go ahead... be a heretic | |
PerlMonks |
How do I change my program's name under ps? ($0='abc' is messed up)by entropy (Sexton) |
on May 25, 2001 at 04:21 UTC ( [id://83181]=perlquestion: print w/replies, xml ) | Need Help?? |
entropy has asked for the wisdom of the Perl Monks concerning the following question:
My goal is to change the process' name. According to the FAQ, I should just assign to the special $0 variable. This works a little, but the program's name now has four or five lines of spaces after it (when doing a 'ps axww'). Sometimes it works good, sometimes it doesn't. In fact, it seems that long values work, whereas shorter values have the spaces appended.
Back to
Seekers of Perl Wisdom
|
|