Skip to content

Instantly share code, notes, and snippets.

@harisrozak
Last active March 22, 2018 07:05
Show Gist options
  • Save harisrozak/e88650bfd1de0c2901f61ac5ba2a0dae to your computer and use it in GitHub Desktop.
Save harisrozak/e88650bfd1de0c2901f61ac5ba2a0dae to your computer and use it in GitHub Desktop.
Loop command on linux with bash file
#! /bin/bash
while [ "true" ]; do
# Do looping.
echo "-----------------------------"
date -u
echo "doing wget.."
wget --no-check-certificate -q -O - http://example.com >/dev/null 2>&1
echo "done, sleeping for a minute"
sleep 60
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment