From owner-freebsd-questions@FreeBSD.ORG Thu Sep 3 20:23:49 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1AE04106568D for ; Thu, 3 Sep 2009 20:23:49 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mail1.panix.com (mail1.panix.com [166.84.1.72]) by mx1.freebsd.org (Postfix) with ESMTP id C726C8FC16 for ; Thu, 3 Sep 2009 20:23:48 +0000 (UTC) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mail1.panix.com (Postfix) with ESMTP id EC9F41F0A6; Thu, 3 Sep 2009 16:23:47 -0400 (EDT) Received: from teddy.fas.com (c-76-26-200-187.hsd1.sc.comcast.net [76.26.200.187]) by mailbackend.panix.com (Postfix) with ESMTP id D3A3F324CE; Thu, 3 Sep 2009 16:23:47 -0400 (EDT) Received: from stan by teddy.fas.com with local (Exim 3.36 #1 (Debian)) id 1MjIqR-0004EB-00; Thu, 03 Sep 2009 16:23:47 -0400 Date: Thu, 3 Sep 2009 16:23:47 -0400 From: stan To: Mel Flynn Message-ID: <20090903202347.GA16108@teddy.fas.com> Mail-Followup-To: Mel Flynn , freebsd-questions@freebsd.org References: <20090903114857.GA635@teddy.fas.com> <200909031754.37681.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090903190241.GA13402@teddy.fas.com> <200909032210.14047.mel.flynn+fbsd.questions@mailing.thruhere.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200909032210.14047.mel.flynn+fbsd.questions@mailing.thruhere.net> X-Editor: gVim X-Operating-System: Debian GNU/Linux X-Kernel-Version: 2.4.23 X-Uptime: 16:19:42 up 33 days, 21:21, 1 user, load average: 0.07, 0.11, 0.08 User-Agent: Mutt/1.5.4i Sender: Stan Brown Cc: freebsd-questions@freebsd.org Subject: Re: What invokes cricket on FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Sep 2009 20:23:49 -0000 On Thu, Sep 03, 2009 at 10:10:13PM +0200, Mel Flynn wrote: > On Thursday 03 September 2009 21:02:41 stan wrote: > > > pnoc# cat collect-subtrees > > #!/bin/sh > > > > echo STARTED >> /tmp/stan > > which perl >> /tmp/stan > > /usr/local/cricket/cricket/collect-subtrees.pl normal >> /tmp/stan > > echo Done >> /tmp/stan > > > > /tmp stan contains: > > > > pnoc# cat /tmp/stan > > STARTED > > /usr/bin/perl > > Done > > STARTED > > /usr/bin/perl > > Done > > > > So, cron is invoking the correct command, and perl can be found, but the > > original collect_subtrees perl script silently dies. > > > > I am convinced it's an environemt probkl`lem, I am just uncertain how to > > determine what. > > I'm not anymore. I'm putting 1 cent on a broken /usr/bin/perl symlink (perl > upgrade gone bonkers, f.e. done with ro mounted /usr) and another cent on the > perl script using system() function, with pathless commands (that is > environment). > file /usr/bin/perl should report if the symlink is broken. pnoc# file /usr/bin/perl /usr/bin/perl: symbolic link to `/usr/local/bin/perl5.8.9' pnoc# ls /usr/local/bin/perl5.8.9 /usr/local/bin/perl5.8.9 You did see where I had the replacement shell script for collect_subtrees do a perl --version into the logfile, right? To me, that's pretty convincing evidence that perl works. Plus, remeber that I can execute the collect_subtree perl script sucesfy`ully whenI su to the cricket user. -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs.