Created
September 23, 2019 05:18
-
-
Save kumbasar/bc7568b5b6af5a1097df5c78fb00ebff to your computer and use it in GitHub Desktop.
Reboot Linux server after 5 sec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x | |
echo "Rebooting after 5 sec.." | |
( sleep 5 ; reboot ) & | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment