#!/bin/sh

time="$($1)"
[ -z "$1" ] && time="5"

# Prevent "no such file or directory" on 1st run
clear && genlop -c >/tmp/genlop

while true; do
	cat /tmp/genlop
	sleep "$time"
	genlop -c >/tmp/genlop
	clear
done