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
Help about at command can be listed with
$ at /?
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 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
$ at 10:00 /every:sunday defrag c:
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.
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