From the course: Linux: Shells and Processes
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
One time jobs using at and batch - Linux Tutorial
From the course: Linux: Shells and Processes
One time jobs using at and batch
- To set up a job to run just one time, we use the AT Service. The AT Service runs jobs at a certain time, or in the case of a batch job, when the CPU load average drops below 0.8. The syntax for AT is at, space, and then the time format. AT supports a wide variety of time formats, including simple 12- and 24-hour clocks like 4:25 am or 16.45. It supports general terms like midnight, noon, and even teatime, which is apparently at 4:00 pm. It also supports in increments such as now plus a specified number of minutes, hours, or days. If you don't want to schedule a one-time task for right now, you can specify a time and date. To run a command at 3:00 am tomorrow, we can specify it in that order, or January 15, 2022. It accepts month, day, year, all squished together, with forward slashes, or with dots. AT supports even more specific time and date formats. For instance, to specify 12:30 am on January 15, 2022, you would…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Introduction to job scheduling2m
-
(Locked)
One time jobs using at and batch3m 55s
-
(Locked)
About cronjobs3m 5s
-
(Locked)
Recurring user jobs using cron2m 5s
-
(Locked)
Recurring system-wide jobs using cron2m 56s
-
(Locked)
Limit access to AT and cron2m 59s
-
(Locked)
Using systemd timer units3m 44s
-
(Locked)