Hi,

I have the following crontab entry.

~$ sudo crontab -l
Password:
* 1 * * * bash -c "/opt/local/bin/port selfupdate; /opt/local/bin/port
upgrade outdated" 1>/tmp/portupdate_out.log 2>/tmp/portupdate_err.log

But it seems not working properly, as I always get an error like the
following after the scheduled time of the crontab entry.

~$ sudo port upgrade tk
Waiting for lock on /opt/local/var/macports/registry/.registry.lock

I also notice that launchd succeed crontab on mac OS X. So it might be
better to avoid launchd.

Does anybody have some example on how to setup up "port selfupdate"
and "port upgrade outdated" run periodically (say once a day)? Thanks!

-- 
Regards,
Peng
_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to