Never Run Twice at Once
/home/student/bin/sync.sh runs from cron every minute, but on slow days a run takes longer than a minute and two copies overwrite each other's data.
Change sync.sh so that only one copy can run at a time:
sync: already running to stderr and exits 1 straight away, without doing any workkill -9, the next run must still work (no stale lock blocks it)About this machine
Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.
Your machine is ready to start
Create a free account to open a machine and get graded.