Correct crontab entry for port selfupdate && port upgrade outdated

Ryan Schmidt ryandesign at macports.org
Sat Apr 27 11:29:51 PDT 2013


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.




More information about the macports-users mailing list