While in Berlin I was downloading some large files for a project I was working on & kept having a problem where the wifi at the hotel kept automatically logging out. So I wrote this short shell script to notify me when I needed to log back in again. Just save it to a file named "checker.sh". chmod the file so it can be executed with "chmod u+x checker.sh". Then just run it from the command line with "./checker.sh".
#!/bin/bash while [ 1 ]; do echo "startup" HOSTS="google.com" COUNT=4 for myHost in $HOSTS do