作者:爱情de眷恋_558 | 来源:互联网 | 2023-05-18 08:41
SoIcreatedacronjobthatlookslikethis:所以我创建了一个cronjob,看起来是这样的:*1****echohelloworl
So I created a cronjob that looks like this:
所以我创建了一个cronjob,看起来是这样的:
*/1 * * * * echo 'hello world' 2>&1 >> ~/logs/test.log
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
But when I check the ~/logs/test.log
I don't see anything logged. What am I doing wrong? Every resource I found on the internet show a similar solution, including this one
但是当我检查~/日志/测试时。我没有看到任何记录。我做错了什么?我在互联网上找到的每一个资源都显示了类似的解决方案,包括这个
1 个解决方案