Re: Monitoring a shell process.
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