Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
#/bin/bash
:Begin
ping -c 10 google.com
If %errorlevel% == 1 (
        echo noreply
        shutdown -r -t 0
)
If %errorlevel% == 0 (
        GoTo :End
)
:End


In my case, I run above scripts by clone job in every 10 mins.