Raspberry Pi script: run couple of command line if not able to ping IP? -


i need reconnect vpn if had disconnected. suggest following simple script

beging:     while (ping xxx.xxx.xxx.xxx == successfull)     {        sleep (10 sec)     }      sudo pop <server>   go to: begining 

i considering node.js, maybe there better way ?

a cron job bash script seem reasonable.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -