Linux命令:batch

在系统不繁忙的时候执行定时任务

2024-12-31 17:39:15

命令行command

补充说明

batch命令 用于在指定时间,当系统不繁忙时执行任务,用法与at相似。

语法

batch(选项)(参数)

选项

-f:指定包含具体指令的任务文件;
-q:指定新任务的队列名称;
-m:任务执行完后向用户发送E-mail。

参数

日期时间:指定任务执行的日期时间。

实例

batch 
at> echo 1234
at> <EOT>
job 5 at Sun Apr 28 08:49:00 2013

评论

静谧以待,您的评论将是点睛之笔

撰写首个评论,启程你的前端奇妙之旅

is a Wiki for programming enthusiasts and professionals, organizing knowledge on programming.

Connect With Me

I have a fair amount of knowledge of Javascript, Typescript, VueJs, and Nuxt. If you have an interesting idea, either open source or paid let's connect.

Sent Mail
© 2024-2025 © . All rights reserved.