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

a
at(1) at(1)
LC_MESSAGES also determines the language in which the words
days, hours, midnight, minutes,
months, next, noon, now,
today, tomorrow, weeks, years, and their singular forms can also be
specified.
IF
LC_TIME or LC_MESSAGES is not specified in the environment or is set to the empty string, the
value of LANG is used as a default for each unspecified or empty variable. If
LANG is not specified or is set
to the empty string, a default of "C" (see lang(5)) is used instead of
LANG.
If any internationalization variable contains an invalid setting, all internationalization variables default to
"C" (see environ(5)).
International Code Set Support
Single- and multi-byte character code sets are supported.
Notes
The
batch command requests a unique job-id for each batch job it schedules. The maximum number of
tries to request a unique job-id is restricted to 100. If not successful after 100 tries, the
batch command
exits with the message
queue full. You can configure this number by setting the variable
BATCH_MAXTRYS=value in the
/etc/default/cron file. The value of BATCH_MAXTRYS
can be any
positive number or the string
INFINITE (the default value). If the value is set to INFINITE,
batch
requests a unique job-id until it successfully receives one.
The at command can schedule only one job per queue for a given time. If a job is already scheduled for a
given time, the at command schedules the new job for the next second. You can remove this limitation by
setting the variable MULTI_JOB_SUPPORT
to 1 in the /etc/default/cron file. If
MULTI_JOB_SUPPORT
is set to 1, then at supports scheduling multiple jobs for the same time and
creates the job-id in the form jobnumber
.queue.index, where index is the total number of jobs scheduled
for the given time. You can disable this feature by setting the variable MULTI_JOB_SUPPORT
to 0.
RETURN VALUE
The exit code is set to one of the following:
0 Successful completion
1 Failure
DIAGNOSTICS
at produces self-explanatory messages for syntax errors and out-of-range times.
warning: commands will be executed using /usr/bin/sh
If your login shell is not the POSIX shell (/usr/bin/sh ), at and batch produce a warning mes-
sage as a reminder that
at and batch jobs are executed using /usr/bin/sh .
EXAMPLES
The following commands show three different ways to run a POSIX shell script file named
delayed-job
five minutes from now:
at -f delayed-job now + 5 minutes
cat delayed-job | at now + 5 minutes
at now + 5 minutes <delayed-job
Run a typical HP-UX command (nroff in this case) when system load levels permit, and redirect standard
output and standard error to files:
batch
nroff source-file >output-file 2>error-file
eof (the default is Ctrl-D)
Run a job contained in future in the home directory at 12:20 a.m. on December 27, 2013:
at -f $HOME/future -t201312271220.00
Redirect standard error to a pipe (useful in a shell procedure). Note that the sequence of the output
redirection specifications is significant. Standard error is redirected to where standard output is going;
standard output is redirected to a file; the original "standard output" (which now consists of the former
standard error) is piped to the mail program.
batch <<!! (sets eof temporarily to !!)
nroff input-file 2>&1 1> output-file | mail loginid
Section 130 Hewlett-Packard Company 4 HP-UX 11i Version 1: September 2005