find out if a program was running

Discussion in 'C' started by juliaprocess, Jun 24, 2008.

  1. juliaprocess

    juliaprocess New Member

    Joined:
    Aug 16, 2006
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    hello

    I would like to have a function that check if a process is running , something like

    bool isRunning( string progName);

    how do i go about doing it on both linux and windows?
     
  2. asha

    asha New Member

    Joined:
    Nov 9, 2006
    Messages:
    44
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    Homemaker
    Location:
    Kolkata
    Home Page:
    http://whatanindianrecipe.com
    What about the ps command in linux?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice