[GLLUG] Help with a script..

Jean van Wyngaardt gabrieldrumming at gmail.com
Mon Jan 6 20:17:33 UTC 2014


Hey guys

Working out this VPN script and it won't run because of line 7 (highlighted in bold below). Seeing as my scripting knowledge is limited, I thought I might check with you!

#!/bin/sh
while [ "true" ]
do
    vpnck=$(nmcli con status uuid 3e46a1d0-ab02-4d69-bd36-31dfcc01af6d)
    if [[ $vpnck == *cryptocloud* ]]
    then
    else
      (sleep 1s && nmcli con up uuid 3e46a1d0-ab02-4d69-bd36-31dfcc01af6d)
    fi
    sleep 20
done


Jean 

Jean van Wyngaardt 

07599 428068 
info at jeangabriel.co.uk 
http://runlevel.co.uk 
http://mactribe.co.uk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20140106/45d0c2d9/attachment.html>


More information about the GLLUG mailing list