Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.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.
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
!!
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):
at -f $HOME/jobfile 5am tuesday + 2 weeks
Add a command to the file named weekly-run in directory jobs in the home directory so that it
automatically reschedules itself every time it runs. This example reschedules itself every Thursday at 1900
(7:00 p.m.):
echo "sh $HOME/jobs/weekly-run" | at 1900 thursday next week
The following commands show several forms recognized by at and include native language usage:
Section 130 4 HP-UX Release 11i: December 2000
___
___