From owner-freebsd-questions@FreeBSD.ORG Fri Nov 14 10:52:59 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 5E08416A4CE for ; Fri, 14 Nov 2003 10:52:59 -0800 (PST) Received: from smtp09.wxs.nl (smtp09.wxs.nl [195.121.6.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9774F43FCB for ; Fri, 14 Nov 2003 10:52:55 -0800 (PST) (envelope-from akruijff@www.kruijff.org) Received: from kruij557.speed.planet.nl (ipd50a97ba.speed.planet.nl [213.10.151.186]) by smtp09.wxs.nl (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0HOC00KIPV0N3S@smtp09.wxs.nl> for freebsd-questions@freebsd.org; Fri, 14 Nov 2003 19:50:48 +0100 (MET) Received: from Alex.lan (localhost [127.0.0.1]) by kruij557.speed.planet.nl (8.12.9p2/8.12.9) with ESMTP id hAEIqtcl002680; Fri, 14 Nov 2003 19:52:55 +0100 (CET envelope-from akruijff@Alex.lan) Received: (from akruijff@localhost) by Alex.lan (8.12.9p2/8.12.9/Submit) id hAEIqrom002679; Fri, 14 Nov 2003 19:52:53 +0100 (CET envelope-from akruijff) Date: Fri, 14 Nov 2003 19:52:53 +0100 From: Alex de Kruijff In-reply-to: To: bsd@perimeter.co.za Message-id: <20031114185253.GA1668@dds.nl> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4.1i References: <00ca01c38f21$ce4dbe00$f0df1ec4@perimeter.co.za> <20031011230804.GA356@dds.nl> cc: freebsd-questions@freebsd.org Subject: Re: 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, 14 Nov 2003 18:52:59 -0000 Sorry, Your mail was cougth in my junk box. On Mon, Oct 13, 2003 at 11:43:47AM +0200, bsd@perimeter.co.za wrote: > Alex de Kruijff writes: > > >On Fri, Oct 10, 2003 at 01:29:40PM +0200, Patrick O'Reilly wrote: > >>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. > > > >There could be any number of problems that may be the cause of this. I > >realy can't see that from here. What you need to do is to do a check on > >every machine that doesn't work. I find it best to go from where the > >process begins and go all the way down to portupgrade. Try to find where > >it goes wrong. It could be that the crontab is wrong or that portupgrade > >isn't installed. > > > > Alex, > > thanks for your response. > > I've tried what you say before I sent the email. What confuses me is that > the script runs fine if I log in and run it at the CLI. And it definitely > runs from cron, because I get the email I am expecting, which is the output > that would normally go to the terminal. > You will have to add lines that print output to see where it goes wrong. > So, the crontab is evidently active, and portupgrade is correctly installed > and configured. The problem lies in beneith. > But the actual fetch of the file simply does not happen if it is run from > cron... Yet, on other servers it all works fine... > > ?!?!?!? > > Still confused. > Patrick. Its posible that you didn't write all calls to there full path. On the shell you can type portrupgrade to start it. But from cron you have to write /usr/local/sbin/portupgrade. -- Alex My homepage (dutch) - http://www.kruijff.org/alex/