I want to test if a process is running on our Mac OS X Server: Frontier.

If it's running, great.

If it's not running, I want to start it.

Am I correct that this should work?

ps aux | grep [F]rontier || /Applications/Frontier/Qaliva\  
Frontier.app/Contents/MacOS/Qaliva\ Frontier &

Why [F]rontier? It's a trick to make sure that the grep doesn't show  
up a false positive.

Does anyone see any reason why this should not work? 'cause it appears  
not to be working like it should, and that makes me sad.

Thanks!

Scott
--
R. Scott Granneman
[email protected] ~ www.granneman.com
Full list of publications @ http://www.granneman.com/publications
   My new book: Google Apps Deciphered @ http://www.granneman.com/books

"Not to be absolutely certain is, I think, one of the essential things  
in rationality."
       ---Bertrand Russell

--~--~---------~--~----~------------~-------~--~----~
Central West End Linux Users Group (via Google Groups)
Main page: http://www.cwelug.org
To post: [email protected]
To subscribe: [email protected]
To unsubscribe: [email protected]
More options: http://groups.google.com/group/cwelug
-~----------~----~----~----~------~----~------~--~---

Reply via email to