User Tools

Site Tools


classnotes:rh134:tasks

Schedule Future Tasks

One jobs

Uses the atd service

uses the at command

example

at 21:03 < myscript

or it can be interactive like

[student@servera ~]$ at -q g teatime
warning: commands will be executed using /bin/sh
at> echo "It's teatime" >> /home/student/tea.txt
at> Ctrl+d
job 2 at Fri Feb 17 16:00:00 2023

the time format of at can be

now +5min

teatime tomorrow (teatime is 16:00)

noon +4 days

5pm august 3 2021

use atq to see queue of tasks

example

[user@host ~]$ atq
28  Mon May 16 05:13:00 2022 a user

use at -c JOBNUMBER to insteact commands of a job

use atrm JOBNUMBER to remove jobs

classnotes/rh134/tasks.txt · Last modified: by 127.0.0.1