Process PID

Discussion in 'Perl' started by Sigal, Feb 18, 2004.

  1. Sigal

    Sigal Guest

    Hi,
    I'm looking for a way to get the process ID of the Perl script I'm running,
    I found getppid() but no getpid() (or anything that seems to do the same
    thing).
    Is there a getpid() routine in Perl? Is there something else I can do to get
    it?

    Thanks in advance,
    Sigal
     
    Sigal, Feb 18, 2004
    #1
    1. Advertisements

  2. Sigal

    Sigal Guest

    Nevermind, I found $$
    I learned something new :)

    "Sigal" <> wrote in message
    news:c0vvm7$bob$...
    > Hi,
    > I'm looking for a way to get the process ID of the Perl script I'm

    running,
    > I found getppid() but no getpid() (or anything that seems to do the same
    > thing).
    > Is there a getpid() routine in Perl? Is there something else I can do to

    get
    > it?
    >
    > Thanks in advance,
    > Sigal
    >
    >
     
    Sigal, Feb 18, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mav
    Replies:
    2
    Views:
    687
  2. walker

    how can get other process pid

    walker, Nov 24, 2003, in forum: C Programming
    Replies:
    0
    Views:
    381
    walker
    Nov 24, 2003
  3. walker

    how can get other process pid

    walker, Nov 24, 2003, in forum: C Programming
    Replies:
    0
    Views:
    359
    walker
    Nov 24, 2003
  4. walker

    how can get other process pid

    walker, Nov 24, 2003, in forum: C Programming
    Replies:
    1
    Views:
    489
    Artie Gold
    Nov 24, 2003
  5. walker

    how can get other process pid

    walker, Nov 24, 2003, in forum: C Programming
    Replies:
    0
    Views:
    339
    walker
    Nov 24, 2003
  6. Srini
    Replies:
    3
    Views:
    1,219
    Jack Klein
    Jan 10, 2004
  7. P.S.
    Replies:
    0
    Views:
    499
  8. Miki Tebeka
    Replies:
    2
    Views:
    758
    Chris Angelico
    Apr 8, 2011
Loading...