Hands-on task
This task is step 11 of the course “Processes and signals”
timeout: limit the time
/opt/jobs/ has two jobs, fast.sh and slow.sh; neither may run longer than 3 seconds. Run each one via timeout with a 3-second limit and write the return codes to /root/rc.txt: on the first line — the code of the fast.sh run, on the second — slow.sh.
What you'll practise:
- timeout
- time limit
- return code
- $?