Schedule Jobs and Tasks With Windows At Command – POFTUT

Schedule Jobs and Tasks With Windows At Command


Linux have the same command for same reasons to schedule commands and jobs for specified times and periods. Windows have the same command with similar usage too. Alternative to this command is schtasks command which will schedule future jobs too. We will look some usage examples of at command.

Help

Help about at command can be listed with /? option.

$ at /?
Help
Help

Schedule Job

Jobs can be scheduled easily. We will specify the time and command with its parameters. In this example 11:00:00PM is given as time and echo "hi" is given as command and parameter.

$ at 11:00:00PM echo "hi"
Schedule Job
Schedule Job

Schedule Recurrent Job

We can create a a job which will run every given time or date period. In this example we create a job which will run defrag c: command every Sunday .

$ at 10:00 /every:sunday defrag c:
Schedule Recurrent Job
Schedule Recurrent Job

List Scheduled Jobs

There will be a lot of all ready scheduled jobs. We can list those jobs. We may list these jobs to learn their id and delete them. We will use at command without any option to list existing jobs.

$ at
List Scheduled Jobs
List Scheduled Jobs

Delete Scheduled Jobs

All ready created jobs can be deleted with /delete option and the id of the job. In this example we will delete job id 2 .

$ at 2 /delete

LEARN MORE  What Is Form Factor In Computing?

Leave a Comment