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

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -