Perl and Process ID

Kurt Wall kwall
Thu May 12 20:46:55 PDT 2005


On Thursday 12 May 2005 11:45, Matthew Carpenter enlightened us thusly:
> Hi All,
>
> How do I get the currently running perl app's process ID (short of ps
> ax |grep )?

$$

as in:

$ perl -e 'print "my pid is $$\n"';
my pid is 8079

Kurt


More information about the Linux-users mailing list