[GLLUG] Help with a script..
stuart at sjsears.com
Mon Jan 6 20:27:38 UTC 2014
On 06/01/14 20:17, Jean van Wyngaardt 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!
for questions like this, it helps enormously if you also paste the error
message you receive :)
> while [ "true" ]
> vpnck=$(nmcli con status uuid 3e46a1d0-ab02-4d69-bd36-31dfcc01af6d)
> if [[ $vpnck == *cryptocloud* ]]
Surely there should be something here, no?
What do you expect the script to do if this condition is true?
Even a "that's okay, do nothing command" would be okay.
> (sleep 1s && nmcli con up uuid 3e46a1d0-ab02-4d69-bd36-31dfcc01af6d)
> sleep 20
Stuart Sears RHCA etc.
"It's today!" said Piglet.
"My favourite day," said Pooh.
More information about the GLLUG