Skip to content

Instantly share code, notes, and snippets.

@DrJume
Created January 22, 2019 20:08
Show Gist options
  • Save DrJume/ddd8ec404db4a4da7b8e8ae6014f08fd to your computer and use it in GitHub Desktop.
Save DrJume/ddd8ec404db4a4da7b8e8ae6014f08fd to your computer and use it in GitHub Desktop.
#!/bin/bash
RUNCMD=./ServerStart.sh
TIMEOUT=20
while true; do
$RUNCMD
echo $(date +"%a %d.%m.%y %T:%N") >> autostart.log
echo
echo "[==============================]"
echo -n ""
for i in $(seq 1 $TIMEOUT); do
echo -en "Auto-Start initiating ($i/$(expr $TIMEOUT)s)\r"
sleep 1
done
echo
echo "[==============================]"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment