DEV Community

Discussion on: Connect to a VPN from the Command Line on Mac OS

Collapse
 
tuksaur profile image
tuksaur

you can add tab to the enterPassword function after sleep 1, should resolve from printing password in username field.

osascript -e "tell application \"System Events\" to keystroke tab"

Collapse
 
gamergun profile image
GamerGun

Thank you, works like a charm!