Linux Labs

Packages, services, and logs / Stage 11 of 13

Cron jobs and systemd timers

Not running Starting usually ~20 s
Leave the lesson

Step 6 of 8 · on a machine · 4 min

Fix a cron job

Another job in your table does not work. A colleague checked: the command from the line, typed in the terminal, writes the time to the file. On schedule the file never appears, and no error message shows up anywhere.

Exercise · do it

The job that stays silent

Your cron table has a job: write the time to ~/cron-lab/time.txt every minute. Typed in the terminal, its command works, yet cron produces no file. Find the cause and fix the job so that cron writes the file.

Sign in and start The machine is available after signing in

Goals · 0 of 2

  • Fix the job in your cron table not done yet
  • Wait for cron to write the file not done yet

Step goals

0 of 2
  • Fix the job in your cron table — not done yet
  • Wait for cron to write the file — not done yet
Ubuntu 24.04

Step goals

0 of 2
  • Fix the job in your cron table — not done yet
  • Wait for cron to write the file — not done yet
Loading…