In Mac OS X 10.11, Opening a VPN connection window with the command line gives me an error

后端 未结 5 730
伪装坚强ぢ
伪装坚强ぢ 2021-02-04 12:32

On Mac OS X <= 10.10, I could run the following command to open a VPN connection window:

function go-vpn {
/usr/bin/env osascript <<-EOF
tell applicatio         


        
5条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-04 13:04

    use shell script instead:

    scutil --nc start "$service"    #connect
    scutil --nc stop "$service"     #disconnect
    

提交回复
热议问题