• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Monitoring a shell process.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Monitoring a shell process.


  • Subject: Re: Monitoring a shell process.
  • From: Brendan Younger <email@hidden>
  • Date: Fri, 6 Jul 2001 00:02:01 -0500

If you launched the Apache Server with NSTask, you can register for this notification (sample code taken directly from the NSTask docs)
[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(checkATaskStatus:)
name:NSTaskDidTerminateNotification
object:nil];

This is probably the best way to do it. (I hate polling.)

Brendan Younger


  • Follow-Ups:
    • Re: Monitoring a shell process.
      • From: Jean-François Veillette <email@hidden>
References: 
 >Monitoring a shell process. (From: Isaac Horton <email@hidden>)

  • Prev by Date: Re: Let's hope XP doesn't keep this "one-up" on OS X!
  • Next by Date: Re: Let's hope XP doesn't keep this "one-up" on OS X!
  • Previous by thread: Re: Monitoring a shell process.
  • Next by thread: Re: Monitoring a shell process.
  • Index(es):
    • Date
    • Thread