HP-UX Reference (11i v2 04/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
exist with the message
queue full. If the
BatchConfig product is installed, 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.
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 stan-
dard 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
!!
Run a job contained in jobfile in the home directory at 5:00 a.m. next Tuesday:
at -f $HOME/jobfile 5am tuesday next week
Run the same job at 5:00 a.m. one week from next Tuesday (i.e., 2 Tuesdays in advance):
Section 1−−38 Hewlett-Packard Company − 4 − HP-UX 11i Version 2: September 2004