Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save paularmstrong/cf0309039863f75842f1 to your computer and use it in GitHub Desktop.

Select an option

Save paularmstrong/cf0309039863f75842f1 to your computer and use it in GitHub Desktop.

Revisions

  1. @Andrewpk Andrewpk revised this gist Nov 20, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions OSX-junos_pulse_listenToMe.sh
    Original file line number Diff line number Diff line change
    @@ -2,5 +2,5 @@
    # start and stop the vpn from the command line from now on with these two commands
    # or rename the aliases as you see fit.
    #################################################################################
    alias startvpn="sudo launchctl load /Library/LaunchDaemons/net.juniper.AccessService.plist; open -a '/Applications/Junos Pulse.app/Contents/Plugins/JamUI/PulseTray.app/Contents/MacOS/PulseTray'"
    alias quitvpn="osascript -e 'tell application \"PulseTray.app\" to quit';sudo launchctl unload /Library/LaunchDaemons/net.juniper.AccessService.plist"
    alias startvpn="sudo launchctl load -w /Library/LaunchDaemons/net.juniper.AccessService.plist; open -a '/Applications/Junos Pulse.app/Contents/Plugins/JamUI/PulseTray.app/Contents/MacOS/PulseTray'"
    alias quitvpn="osascript -e 'tell application \"PulseTray.app\" to quit';sudo launchctl unload -w /Library/LaunchDaemons/net.juniper.AccessService.plist"
  2. @Andrewpk Andrewpk revised this gist Nov 20, 2013. 1 changed file with 20 additions and 0 deletions.
    20 changes: 20 additions & 0 deletions net.juniper.pulsetray.plist
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    <?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>Label</key>
    <string>net.juniper.pulsetray</string>
    <key>LimitLoadToSessionType</key>
    <array>
    <string>Aqua</string>
    </array>
    <key>ProgramArguments</key>
    <array>
    <string>/Applications/Junos Pulse.app/Contents/Plugins/JamUI/PulseTray.app/Contents/MacOS/PulseTray</string>
    </array>
    <key>KeepAlive</key>
    <false/>
    <key>Disabled</key>
    <false/>
    </dict>
    </plist>
  3. @Andrewpk Andrewpk created this gist Nov 20, 2013.
    6 changes: 6 additions & 0 deletions OSX-junos_pulse_listenToMe.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #################################################################################
    # start and stop the vpn from the command line from now on with these two commands
    # or rename the aliases as you see fit.
    #################################################################################
    alias startvpn="sudo launchctl load /Library/LaunchDaemons/net.juniper.AccessService.plist; open -a '/Applications/Junos Pulse.app/Contents/Plugins/JamUI/PulseTray.app/Contents/MacOS/PulseTray'"
    alias quitvpn="osascript -e 'tell application \"PulseTray.app\" to quit';sudo launchctl unload /Library/LaunchDaemons/net.juniper.AccessService.plist"