Hands-on task
This task is step 16 of the course “Bash scripts: from a loop to a robust script”
Command Router Script
Write /usr/local/bin/svc that, based on the first argument, prints: start → starting, stop → stopping, status → running. For any other argument, exit with code 2.
What you'll practise:
- case
- bash scripts
- $1 arguments
- exit codes
- branching