Re: PID of a perl script

2005-07-12 Thread Mads N. Vestergaard
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey again, Thanks for the replies. I also got it ton work, but I still have on question. Too get the actual PID i need to say $$+1, do you guys have any idea why I should do that. In perlvar it also says $PID should return the pid. It doesn't work

Re: PID of a perl script

2005-07-12 Thread Wiggins d'Anconia
Please bottom post... Mads N. Vestergaard wrote: Hey again, Thanks for the replies. I also got it ton work, but I still have on question. Too get the actual PID i need to say $$+1, do you guys have any idea why I should do that. Without seeing some code no, though if there is any forking

RE: PID of a perl script

2005-07-11 Thread Larsen, Errin M HMMA/Information Technology Department
Mads N. Vestergaard wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey Everybody, Hi there! Just a simple question. How do I get the PID of my running perl script. Check out the doc 'perlvar'. # perldoc perlvar Then, do a search for 'PID'. It's in there. Thanks guys,

Re: PID of a perl script

2005-07-11 Thread Wiggins d'Anconia
Mads N. Vestergaard wrote: Hey Everybody, Just a simple question. How do I get the PID of my running perl script. I would like to have it in my perlscript so I can write it to a .pid file. Thanks guys, Mads $$ is a special variable that holds what you are after. perldoc perlvar

Re: PID of a perl script

2005-07-11 Thread Jay Savage
On 7/11/05, Mads N. Vestergaard [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey Everybody, Just a simple question. How do I get the PID of my running perl script. I would like to have it in my perlscript so I can write it to a .pid file. Thanks guys, Mads