On Nov 22, Chris Browning said:

>On Thursday 21 November 2002 03:21 am, cedric gross wrote:
>> Hello every body,
>>
>> How to know what task have run a perl script ?
>> I mean is possible to get within the code which process Id have start the
>> script.
>
>If you're running Linux or Unix, perl holds your environment variables in a
>hash; %ENV. Your process id number is $ENV{PID}.

You can just use the $$ variable too.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to