Is behaviour of "batch" command analogous to "at" command?
Environment
- Red Hat Enterprise Linux (RHEL) 5
- Red Hat Enterprise Linux (RHEL) 6
Issue
- As per the man page of
atcommand, If the user submitting theatjob is not the super-user, variables that alter the behaviour of the loader ld.so(8), such as LD_LIBRARY_PATH , cannot be recorded and restored byat. Is this behaviour also applicable tobatchcommand?
Resolution
-
The "batch" command is a tiny shell wrapper around
at -qb. Hence, thebatchcommand will also follow the same behavior asatcommand. -
To verify it, check the /usr/bin/batch shell script.
$ cat /usr/bin/batch
#! /bin/sh -e
if [ "$#" -gt 0 ]; then
echo batch accepts no parameters
exit 1
fi
prefix=/usr
exec_prefix=/usr
exec /usr/bin/at -qb now
Diagnostic Steps
- Observe the /usr/bin/batch script.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
