Liu`e 发表于 2021-6-10 18:27
放到 shell脚本里面不就好了
cicvc 发表于 2021-6-10 18:30
看crontab的日志
longhtml 发表于 2021-6-10 18:36
命令末尾加 >/dev/null 2>&1
longhtml 发表于 2021-6-10 18:57
看日志,定时任务已经执行了。你把命令放到一个xx.sh脚本里面,赋予执行权限:chmod +x xx.sh。定时任务的 ...
h20 发表于 2021-6-10 19:06
crontab里的PATH和pwd可能不是你想象的那样
longhtml 发表于 2021-6-10 19:22
你可以尝试让ip_table的输出的log更丰富一点,我不是知道在ssh终端里面直接执行/root/xx.sh的log是怎么样的 ...
欢迎光临 全球主机交流论坛 (https://443502.xyz/) | Powered by Discuz! X3.4 |