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
In reply to Re: How to obtain current child process name?
by shmem
in thread How to obtain current child process name?
by sneha_heda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |