Find the answer to your Linux question:
Results 1 to 2 of 2
Is the following possible from c++? Start a process. Close the same process. Check/Verify that the process is not running. Start the process again...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    11

    Start and close processes c++


    Is the following possible from c++?

    Start a process.
    Close the same process.
    Check/Verify that the process is not running.
    Start the process again

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    11,159
    See the use of fork()/exec(). However, why do you want to do this?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •