1.shell脚本 #!/bin/bash echo "hello" 2.修改权限 chmod 777 b.sh 3.定时任务 * * * * * /root/b.sh >> /root/a.txt 2>&1 4.结果 每分钟执行一次