at −q b −m now
- Provide a default value for the internationalization variables that are unset or null. (See the Base Definitions volume of POSIX.1‐2008, Section 8.2, Internationalization Variables for the precedence of internationalization variables used to determine the values of locale categories.)
- If set to a non-empty string value, override the values of all the other internationalization variables.
- Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multi-byte characters in arguments and input files).
- Determine the format and contents for date and time strings written by batch.
- Determine the location of message catalogs for the processing of LC_MESSAGES.
- Determine the name of a command interpreter to be used to invoke the at-job. If the variable is unset or null, sh shall be used. If it is set to a value other than a name for sh, the implementation shall do one of the following: use that shell; use sh; use the login shell from the user database; any of the preceding accompanied by a warning diagnostic about which was chosen.
- Determine the timezone. The job shall be submitted for execution at the time specified by timespec or −t time relative to the timezone specified by the TZ variable. If timespec specifies a timezone, it overrides TZ. If timespec does not specify a timezone and TZ is unset or null, an unspecified default timezone shall be used.
"job %s at %s\n", at_job_id, <date>
date +"%a %b %e %T %Y"
- Successful completion.
- An error occurred.
- This sequence can be used at a terminal:
batch sort < file >outfile EOT
- This sequence, which demonstrates redirecting standard error to a pipe, is useful in a command procedure (the sequence of output redirection specifications is significant):
batch <<! diff file1 file2 2>&1 >outfile | mailx mygroup !