16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Exit Values<br />

Portability<br />

v NLSPATH<br />

Related Information<br />

dirname<br />

See Appendix F, “Localization” for more information.<br />

0 Successful completion<br />

1 Failure due to any of the following:<br />

v Unknown command-line option<br />

v Incorrect number of arguments<br />

P<strong>OS</strong>IX.2, X/Open Portability Guide, <strong>UNIX</strong> systems.<br />

batch — Run commands when the system is not busy<br />

Format<br />

Description<br />

batch<br />

batch lets you run commands in batch mode. It reads the commands from the<br />

standard input (stdin). The system records the commands and runs them at a time<br />

when the system load is relatively low (that is, when the system is not busy).<br />

The batch command is equivalent to<br />

at –q b –m now<br />

For more details, see at.<br />

at, batch, and crontab submit jobs to cron; the data in those jobs may contain<br />

doublebyte characters. When the jobs are run, the data in the jobs are interpreted<br />

in the locale that cron is using. Since it is strongly recommended that cron be<br />

started in the P<strong>OS</strong>IX locale, doublebyte characters in the job may not be interpreted<br />

correctly. You may be able to get around this by calling setlocale() in the job itself.<br />

Environment Variables<br />

batch uses the following environment variable:<br />

Localization<br />

SHELL<br />

Contains the name of the shell command interpreter used to invoke the<br />

batch job.<br />

batch uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v NLSPATH<br />

basename<br />

Chapter 2. Shell command descriptions 49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!