3
How can I start a VPN connection (it's already all configured) from a shell on OSX? I have looked through the man entry on net
but I don't think that's it. launchctl
might be more promising...
Edit: I've made the title more general because I think the question would apply to any kind of network connection.
Yes,
-setairportpower
is more specific to AirPort, but it's just an example.-setnetworkserviceenabled
is more general. Also, they perform different actions: A disabled AirPort network connection cannot be powered on. – Daniel Beck – 2011-04-02T23:35:41.503Thanks @Daniel Beck, I put in an answer myself, after a bit of thinking horizontally about it ;) – Dan Rosenstark – 2011-04-03T06:41:28.753