keep-running/bin/run.sh

12 lines
132 B
Bash
Raw Normal View History

2023-11-19 02:28:59 +00:00
#!/bin/bash
SLEEP=${1:-'10'}
EXIT=${2:-'0'}
2023-11-19 02:28:59 +00:00
echo "Sleeping for $SLEEP seconds...";
sleep $SLEEP;
echo "Waking up!";
exit $EXIT;