HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)

a
at(1) at(1)
NAME
at, batch - execute batched commands immediately or at a later time
SYNOPSIS
Enter commands from standard input to run at a specified time:
at [-m][-q queue]
-t spectime
commands
eof
at [-m][-q queue] time [date][
next timeunit +count timeunit]
commands
eof
Enter commands from a file to run at a specified time:
at -f job-file [-m][
-q queue] -t spectime
at -f job-file [-m
][-q queue] time [date][next timeunit +count timeunit]
List scheduled jobs:
at -d job-id ...
at -l [job-id ...]
at -l -q queue
Cancel (remove) a scheduled job:
at -r job-id ...
Enter commands from standard input to run as a batch process:
batch
commands
eof
Enter commands from a file to run as a batch process:
batch < job-file
DESCRIPTION
The at and batch commands schedule jobs for execution by the cron daemon (see cron(1M)).
at schedules a job for execution at a specified time. at can also list (
-l) or remove (-r)existing
scheduled
at and batch jobs.
batch schedules a job for execution immediately, or as soon as system load levels permit.
You can enter commands into a job in one of the following ways:
From the keyboard on separate lines immediately after the at or batch
command line, followed by
the currently defined eof (end-of-file) character to end the input. The default eof is Ctrl-
D. It can be
redefined in your environment (see stty(1)).
With the
-f option of the at command to read input from a script file.
From output piped from a preceding command.
Options and Arguments
at recognizes the following options and arguments.
commands One or more HP-UX commands that can be executed as a shell script by at or
batch.
eof End-of-file character. The default is Ctrl-D unless defined otherwise in your
environment.
job-file The path name of an existing file.
job-id The job identifier reported by at or batch when the job was originally
scheduled.
-d job-id ... Displays the contents of the specified job. An unprivileged user is restricted to
display information only on jobs that the user owns. A user with the appropriate
HP-UX 11i Version 1: September 2005 1 Hewlett-Packard Company Section 127