[VPN LaunchDaemon to SP8 HPC]
#!/bin/bash
dir=$(dirname $0)
user=$(cat $dir/user)
cat $dir/password \
| openssl rsautl -decrypt -inkey $dir/private.key \
| openconnect https://hpc.spring8.or.jp --user=$user
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/usr/local/bin:/usr/bin:/bin</string>
</dict>
<key>KeepAlive</key>
<dict>
<key>AfterInitialDemand</key>
<true/>
<key>Crashed</key>
<false/>
<key>SuccessfulExit</key>
<true/>
</dict>
<key>Label</key>
<string>daehyun.vpn-sp8</string>
<key>Program</key>
<string>/path/to/connect.sh</string>
</dict>
</plist>