at jobs
Use at:
Syntax:
Example:
After this command you will be prompted to enter the commands that you want to run:
How to schedule a job:
Check the date with the
date
command in Linux to get the timeSchedule the job
2.1 Schedule Job from File/Script:
Syntax:
Flags:
Example:
2.2 Schedule Job from Command:
Syntax:
This will open a prompt for input
• Enter command / commands you want to run • Once finished press CTRL + D
Check if the job is scheduled:
Command:
This will display the job schedule number first, the date when it will execute second and the user under which this executes third.
Removing incorrect job:
If the job is not scheduled correctly, you can remove this with: Command:
Example: The job scheduled below is the job with number 36 To remove the job the command used was: atrm 36 After executing this command, you can check if it was removed with atq
Extra Info:
To schedule a job 1h from now you can use the following command:
Check the content of a Job:
Last updated