Fetching distfiles via cron does not download...
Hello list. I have the following in /etc/crontab @reboot root portsnap -I cron update /root/bin/cv_portsnap_cron pkg_version -vIL= The script /root/bin/cv_portsnap_cron #!/bin/sh portmaster --clean-distfiles-all portmaster -aF Message received from cron: === Gathering distinfo list for installed ports === Checking for stale distfiles ]0;portmaster: All=== Starting check of installed ports for available updates === Distfile fetching is complete libxul-1.9.2.9_1 needs updating (index has 1.9.2.12) pciids-20101005needs updating (index has 20101020) Even so I do not get the distfiles downloaded. Where am I going wrong? Thanks /Leslie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Fetching distfiles via cron does not download...
On Tue, Nov 2, 2010 at 4:08 AM, Leslie Jensen les...@eskk.nu wrote: Hello list. I have the following in /etc/crontab @reboot root portsnap -I cron update /root/bin/cv_portsnap_cron pkg_version -vIL= I don't see where you are doing a portsnap fetch first. If you haven't done a fetch, then the update will probably fail. If the update fails, because you are using it won't execute the next part of your script. The script /root/bin/cv_portsnap_cron #!/bin/sh portmaster --clean-distfiles-all portmaster -aF Message received from cron: === Gathering distinfo list for installed ports === Checking for stale distfiles ]0;portmaster: All === Starting check of installed ports for available updates === Distfile fetching is complete libxul-1.9.2.9_1 needs updating (index has 1.9.2.12) pciids-20101005needs updating (index has 20101020) Even so I do not get the distfiles downloaded. Where am I going wrong? Thanks /Leslie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- -- Lystic http://UnixNews.net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Fetching distfiles via cron does not download...
Lystic Emsen skrev 2010-11-02 11:53: On Tue, Nov 2, 2010 at 4:08 AM, Leslie Jensenles...@eskk.nu wrote: Hello list. I have the following in /etc/crontab @reboot root portsnap -I cron update /root/bin/cv_portsnap_cron pkg_version -vIL= I don't see where you are doing a portsnap fetch first. If you haven't done a fetch, then the update will probably fail. If the update fails, because you are using it won't execute the next part of your script. According to the handbook this command is supposed to do that. portsnap -I cron update /Leslie The script /root/bin/cv_portsnap_cron #!/bin/sh portmaster --clean-distfiles-all portmaster -aF Message received from cron: === Gathering distinfo list for installed ports === Checking for stale distfiles ]0;portmaster: All === Starting check of installed ports for available updates === Distfile fetching is complete libxul-1.9.2.9_1needs updating (index has 1.9.2.12) pciids-20101005needs updating (index has 20101020) Even so I do not get the distfiles downloaded. Where am I going wrong? Thanks /Leslie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Fetching distfiles via cron does not download...
On Tue, Nov 2, 2010 at 5:57 AM, Leslie Jensen les...@eskk.nu wrote: Lystic Emsen skrev 2010-11-02 11:53: On Tue, Nov 2, 2010 at 4:08 AM, Leslie Jensenles...@eskk.nu wrote: Hello list. I have the following in /etc/crontab @reboot root portsnap -I cron update /root/bin/cv_portsnap_cron pkg_version -vIL= I don't see where you are doing a portsnap fetch first. If you haven't done a fetch, then the update will probably fail. If the update fails, because you are using it won't execute the next part of your script. According to the handbook this command is supposed to do that. portsnap -I cron update Yeah, you are right, I missed that. However, the problem is that you didn't specify the full path to portsnap. That will cause it to fail and the operator won't let it proceed. When using cron, you need to specify the full path because cron doesn't have access to all the environment variables your normal shell does. -- Lystic http://UnixNews.net http://unixnews.net/ /Leslie The script /root/bin/cv_portsnap_cron #!/bin/sh portmaster --clean-distfiles-all portmaster -aF Message received from cron: === Gathering distinfo list for installed ports === Checking for stale distfiles ]0;portmaster: All === Starting check of installed ports for available updates === Distfile fetching is complete libxul-1.9.2.9_1needs updating (index has 1.9.2.12) pciids-20101005needs updating (index has 20101020) Even so I do not get the distfiles downloaded. Where am I going wrong? Thanks /Leslie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Fetching distfiles via cron does not download...
Lystic Emsen skrev 2010-11-02 12:44: According to the handbook this command is supposed to do that. portsnap -I cron update Yeah, you are right, I missed that. However, the problem is that you didn't specify the full path to portsnap. That will cause it to fail and the operator won't let it proceed. When using cron, you need to specify the full path because cron doesn't have access to all the environment variables your normal shell does. -- Lystic http://UnixNews.nethttp://unixnews.net/ If what you say is correct then I shouldn't get the result of pkg_version -vIL telling me that there are ports that need an upgrade, should I? /Leslie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org