Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我无法at从 Mac 终端获取运行命令。
at
我试过at -f test.txt 10:44将它放在队列中,但它永远不会运行。
at -f test.txt 10:44
我试过sh test.txt | at 10:43将它放在队列中(尽管它从不运行),但它也会立即运行脚本。
sh test.txt | at 10:43
运行sh test.txt良好,它是一个发送电子邮件的测试脚本。
sh test.txt
我究竟做错了什么?
我认为答案可能在手册页中。man at,实现注意事项 注意 at 是通过 launchd(8) 守护进程定期调用 atrun(8) 实现的,默认情况下禁用。有关启用 atrun 的信息,请参阅 atrun(8)。
这是来自贾斯汀伍德的评论。
我感谢他的帮助 - 我应该更仔细地阅读手册页。