mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-08 15:04:05 +08:00
19 lines
879 B
HTML
19 lines
879 B
HTML
<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> echo 1234
|
||
at> <EOT>
|
||
job 5 at Sun Apr 28 08:49:00 2013</code></pre>
|
||
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->
|