-----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 for me, cann I be doing something wrong? Thanks Jay Savage wrote: | 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 |> |>- -- |>Mads N. Vestergaard - http://rwxr-xr-x.dk |>Interested in Open Source, and web application development | | | It's stored in the special variable $$. See perlvar for details. | | You might also want to check out the cpan File::Pid module, which | automates pid file management. | | -- jay | -------------------------------------------------- | This email and attachment(s): [ ] blogable; [ x ] ask first; [ ] | private and confidential | | daggerquill [at] gmail [dot] com | - -- Mads N. Vestergaard - http://rwxr-xr-x.dk Interested in Open Source, and web application development -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFC1E4c7WOaPMd53OMRAhQnAJ9M/dJpdnQeQ9wvH0hs0I5lHfctrwCgizHN FQIYmJXl/l94d9XZOKc6flg= =+LMt -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>