如何在命令行上执行此操作?
例如复制/dir/another/file到/tmp/所以我有/tmp/dir/another/file
我想在运行 Lion 的 Macbook Pro 上设置一个 crontab。我照常运行,crontab -e并提供一个快速的工作,看看是否一切正常---
*/10 * * * * wget -O - -q -t 1 http://site.local/cron.php
Run Code Online (Sandbox Code Playgroud)
10 分钟后,我看到系统收到了一些“邮件”,内容为 ---
/bin/sh: wget: command not found
Run Code Online (Sandbox Code Playgroud)
我确实安装了 wget,因为我可以从命令行运行程序
我该如何解决这个错误?我的 crontab 还是.bash_profile需要 shebang?