From owner-freebsd-questions@FreeBSD.ORG Fri Oct 10 04:28:32 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54C1716A4B3 for ; Fri, 10 Oct 2003 04:28:32 -0700 (PDT) Received: from perimeter.co.za (obelix.perimeter.co.za [209.212.102.154]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC61843F3F for ; Fri, 10 Oct 2003 04:28:29 -0700 (PDT) (envelope-from bsd@perimeter.co.za) Received: from impedimenta (ndf-dial-196-30-223-240.mweb.co.za [196.30.223.240]) (AUTH: LOGIN bsd@perimeter.co.za) by perimeter.co.za with esmtp; Fri, 10 Oct 2003 13:28:25 +0200 Message-ID: <00ca01c38f21$ce4dbe00$f0df1ec4@perimeter.co.za> From: "Patrick O'Reilly" To: freebsd-questions@freebsd.org Date: Fri, 10 Oct 2003 13:29:40 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Subject: portupgrade -Fa X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2003 11:28:32 -0000 Here's a strange thing: I have a number of servers which all run a portupgrade script every night to fetch the latest distfiles automatically. I then complete the upgrade when I decide I'm in the mood :) The strange part is that on some of the servers the script works just fine, and on others it runs, and emails me what looks like a job well done, but the distfile has NOT been fetched. When I then go to do the actual upgrade, the distfile must first be fetched by portupgrade before it proceeds to build. Does anyone know what might cause this? Regards, Patrick. PS: here is the script which is triggered by cron: ===================================== #!/usr/local/bin/bash # Copyright 2002,2003 - Perimeter Networks CC. All rights reserved. # PCR:manual mars.connectivit.net:/peri/scr/cron/portupgrade # 09/10/2003 Patrick O'Reilly #----------------------------------------------------------# # !!! THIS FILE IS MAINTAINED BY PCR !!! # # !!! DO NOT MAKE CHANGES MANUALLY - THEY WILL BE LOST !!! # #----------------------------------------------------------# # Perimeter's cronified "portupgrade -Fa" script # 19/09/2003 11:20 ( echo "Running 'portupgrade -Fa' on mars ..." echo "`date`: portupgrade -Fa" echo " " cd /usr/ports /usr/local/sbin/portupgrade -Fa echo " " echo "`date`: Done." echo "That's All Folks!" ) | mail -s "[mars] portupgrade -Fa" postmaster@perimeter.co.za =====================================