On Sat, Apr 27, 2013 at 11:29 AM, Ryan Schmidt <[email protected]> wrote: > > On Apr 27, 2013, at 08:10, Peng Yu wrote: > >> I have the following crontab entry >> /tmp$ sudo crontab -l >> 0 1 * * * sudo nice /opt/local/bin/bash -c "set -v; ((echo '==> port >> selfupdate <=='; /opt/local/bin/port selfupdate) && (echo '==> port >> upgrade outdated <=='; /opt/local/bin/port upgrade outdated)) >>> /tmp/portupdate.log 2>&1" >> >> But I always see the following error message. >> >> /tmp$ cat portupdate.log >> ==> port selfupdate <== >> ---> Updating MacPorts base sources using rsync >> Error: /opt/local/bin/port: port selfupdate failed: Error >> synchronizing MacPorts sources: command execution failed > > Try modifying the crontab entry to run "sudo port -d selfupdate" so that > we'll see why this failed.
Can you even run "sudo" inside a cron entry? You won't be able to automatically enter the password. You might have to put the entry into root's crontab. ...Stephen _______________________________________________ macports-users mailing list [email protected] https://lists.macosforge.org/mailman/listinfo/macports-users
