2019-04-21 11:50:48 +08:00

19 lines
879 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1 id="batch">batch</h1>
<p>在系统不繁忙的时候执行定时任务</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>batch命令</strong> 用于在指定时间当系统不繁忙时执行任务用法与at相似。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">batch(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-f指定包含具体指令的任务文件
-q指定新任务的队列名称
-m任务执行完后向用户发送E-mail。</code></pre>
<h3 id="参数">参数</h3>
<p>日期时间:指定任务执行的日期时间。</p>
<h3 id="实例">实例</h3>
<pre><code class="language-bash">batch
at&gt; echo 1234
at&gt; &lt;EOT&gt;
job 5 at Sun Apr 28 08:49:00 2013</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->