九、其他命令

9.1 at 定时启动命令行,or sh文件

1.manjaro 安装at

sudo pacman -S at

2.启动 atd.service服务

# ps 查看atd服务进程
# ps -ef | grep atd

#查看服务进程另一种方法
# /etc/init.d/atd status # 启动服务 method1
/etc/init.d/atd start # or restart #若无此目录,则采用以下代码,启动服务 systemctl start atd #ps -ef | grep atd

eg:

sudo at now + 2 minutes



at> touch /opt/at.txt
at> <EOT>  (<EOT就是 ctrl + d,按快捷键即可结束运行。>)
原文地址:https://www.cnblogs.com/uchiha/p/11214166.html