TrumanWong

batch

Execute scheduled tasks when the system is not busy

Supplementary instructions

batch command is used to execute tasks at a specified time when the system is not busy. The usage is similar to at.

grammar

batch(option)(parameter)

Options

-f: Specify the task file containing specific instructions;
-q: Specify the queue name of the new task;
-m: Send an E-mail to the user after the task is executed.

Parameters

Date and time: Specify the date and time when the task will be executed.

Example

batch
at> echo 1234
at> <EOT>
job 5 at Sun Apr 28 08:49:00 2013