Monitoring a shell process.
Monitoring a shell process.
- Subject: Monitoring a shell process.
- From: Isaac Horton <email@hidden>
- Date: Thu, 05 Jul 2001 13:08:55 -0700
Is it possible to monitor a daemon for changes? For instance. Say I had a
cocoa application that was a wrapper for Apache. The wrapper allows for you
to stop and start the Apache Server. My problem is monitoring Apache incase
someone decides to stop/start apache via telnet, and then updating the UI to
reflect the new state of httpd. If that is not possible, then is possible to
monitor a file for changes(i.e.:httpd.pid). I am not partial either way.
From the lists that I've looked on, it doesn't seem as if NSNotification
allows for this kind of monitoring. Any help would be greatly appreciated.
Thanks,
Isaac