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

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…

Contents