搜索

此内容没有您所选择的语言版本。

27.2.4. Configuring a Batch Job

download PDF
The Batch application executes the defined one-time tasks when the system load average decreases below 0.8.
To define a Batch job, do the following:
  1. On the command line, type the command batch.
  2. In the displayed at> prompt, define the job commands:
    • Type the command the job should execute and press Enter. Optionally, repeat the step to provide multiple commands.
    • Enter a shell script at the prompt and press Enter after each line in the script.
      If a script is entered, the job uses the shell set in the user's SHELL environment, the user's login shell, or /bin/sh (whichever is found first).
  3. Once finished, press Ctrl+D on an empty line to exit the prompt.
If the set of commands or the script tries to display information to standard output, the output is emailed to the user.
To view the list of pending jobs, use the atq command. See Section 27.2.5, “Viewing Pending Jobs” for more information.
You can also restrict the usage of the batch command. For more information, see Section 27.2.7, “Controlling Access to At and Batch” for details.
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.