Understanding "at"
Many a times we need to schedule a task for a future time, say in the evening at 8 P.M. on a specific day. We can use the at
command in such a situation.
Sometimes we need to repeat the same task at a specific time, periodically, every day, or every month. In such situations, we can use the crontab
command.
Let's learn more about the utility of the at
command. To use the at
command, the syntax is as follows:
$ at time date
The following are the examples of the at
command:
- The
Control + D
command will save theat
job. The task will be executed at 11.15 A.M. This command will log messages to thelog.txt
file at 11.15 A.M.:$ at 11.15 AM at > echo "Hello World" > $HOME/log.txt at > Control + D
- The following command will send an e-mail ...
Get Learning Linux Shell Scripting now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.