while (1) { system("some command") and die "Error running command: $?"; sleep 60*60; }