[GLLUG] Help with a script..

Paul Hewlett phewlett76 at gmail.com
Mon Jan 6 21:24:17 UTC 2014


an empty statement in shell is ':' I.e. a single colon . put this after the
then on its own line
On 6 Jan 2014 20:17, "Jean van Wyngaardt" <gabrieldrumming at gmail.com> wrote:

> 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
>
>
> _______________________________________________
> GLLUG mailing list
> GLLUG at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/gllug
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20140106/856b7294/attachment.html>


More information about the GLLUG mailing list