Is behaviour of "batch" command analogous to "at" command?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux (RHEL) 5
  • Red Hat Enterprise Linux (RHEL) 6

Issue

  • As per the man page of at command, If the user submitting the at job 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 by at. Is this behaviour also applicable to batch command?

Resolution

  • The "batch" command is a tiny shell wrapper around at -qb. Hence, the batch command will also follow the same behavior as at command.

  • 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.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.