HP-UX Reference (11i v3 07/02) - 1 User Commands A-M (vol 1)

a
at(1) at(1)
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.
Security Restrictions
If the compartmentalization feature is enabled,
cron and at invoke the jobs from the compartment that
the jobs were created from. Note that
at
creates the job files in /var/spool/cron/atjobs
.Hence,
if the
at command is invoked from a compartment which has no write access to this directory and which
disallows the COMMALLOWED privilege, at fails to schedule the jobs. See compartments(5) and
privileges(5) for more information.
EXTERNAL INFLUENCES
Environment Variables
LC_TIME determines the format and contents of date and time strings.
LC_MESSAGES determines the language in which messages are displayed.
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.
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:
64 Hewlett-Packard Company 4 HP-UX 11i Version 3: February 2007