in reply to How to obtain current child process name?
See perlvar. It's in $0; you can assign to it.
qwurx [shmem] ~ > perl -e '$0="foobar"; sleep'
and in another window
qwurx [shmem] ~ > ps auxw | grep foobar shmem 4041 0.0 0.0 6012 1312 pts/1 S+ 13:00 0:00 fooba +r shmem 4043 0.0 0.0 4220 584 pts/2 S+ 13:00 0:00 grep +foobar
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to obtain current child process name?
by dsheroh (Monsignor) on Nov 30, 2009 at 13:40 UTC | |
by shmem (Chancellor) on Nov 30, 2009 at 14:50 UTC |