Cmd Generator

at

在指定时间执行命令。

at "now + 5 minutes"

示例

# 5 分钟后执行
echo backup.sh | at now + 5 minutes

# 使用 at 命令调度
at now + 1 hour
at> ./deploy.sh
at> Ctrl+D

# 列出等待的任务
atq

# 删除任务
atrm 3

# 在午夜运行脚本
echo /path/to/script.sh | at midnight

Sponsors