#!/usr/bin/env bash

TIME=${1-5}

while true; do
    echo 'Running escript...'
    ./escript.erl
    echo "Timeout ($TIME s.)..."
    sleep $TIME
done
