I would like to have a test to see if a background process is running. Because it's a background process, the "Application" service doesn't work. I have tried the "Is App Running?" script from the Extras page, but it does not seem to be reliable. It will sometimes report failures even if the process is running. For example, I used it to test to see if Simon was running, and that test fails periodically, and I get notified! So clearly Simon was running the entire time, i.e. there was a false failure. I'm guessing it could be related to the Applescript test not being right all the time. Or, it *could* be that two regularly running osascript things on the machine collide. Perhaps only one can be running at once? (Doesn't seem likely, and doesn't seem likely that two would collide, but I can't think of any other reason.)
I also tried writing a shell script test (run 'ps -auxww', grep for the process name, and do a 'wc -l' to see if it is running) but was not successful with that.
Any ideas? Any other suggestions for checking to see if a background app/process is running?
Thanks.
--greg
Recent comments
2 days 23 hours ago
5 days 2 hours ago
1 week 4 days ago
2 weeks 1 day ago
2 weeks 1 day ago
3 weeks 1 day ago
3 weeks 1 day ago
3 weeks 1 day ago
3 weeks 1 day ago
3 weeks 1 day ago