I'm having trouble with opening Safari from terminal. Command I tried is
Safari opens and tries to navigate to the url:
I know, I could do it using
open -a safari http://www.example.com
But I can't. The bigger picture is quite complicated: I'm actually trying to run the browser from command-line .NET application (which is running using mono). I use
System.Process .NET class to run the command and I have to be able to control the process (get process Id, check if it's active, kill it if necessary, etc.). Using
open command does not return correct process Id (I tried using
-W switch - does not help either).