Results 1 to 3 of 3

Thread: Finding process relationshipd

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    2

    Finding process relationshipd

    Hi,

    have an app that monitors other apps, starts and stops them at specific time and re-starts them if they should fail.

    The problem I have is that if an process fails I need to work out what processes it has spawned to unload those too ..... any idea how I can see a sort of process parent - child relationship.

    Any suggestions welcome

    Thanks
    Paul

  2. #2
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    If I get your meaning, you're trying to do something like Windows NT services?

    I don't know how you'd find child processes, but you *might* have a problem stopping them if you do...as far as I know, you can only control processes that your program starts. If anyone knows differently, please help out!
    Things I've Said:
    "Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
    "Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
    "You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    2
    No I have the unloading processes bit working fine, as long as I have the process id I can stop it, problem is some of the process spawned off by the process I kill need to be wiped out too and its getting these process IDs that is causing me the problem

Posting Permissions

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



Click Here to Expand Forum to Full Width