From owner-freebsd-questions@FreeBSD.ORG Thu Sep 3 21:05:17 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4558106566C for ; Thu, 3 Sep 2009 21:05:17 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mail2.panix.com (mail2.panix.com [166.84.1.73]) by mx1.freebsd.org (Postfix) with ESMTP id 7D5988FC25 for ; Thu, 3 Sep 2009 21:05:17 +0000 (UTC) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mail2.panix.com (Postfix) with ESMTP id D581A38E45; Thu, 3 Sep 2009 17:05:16 -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 A134837792; Thu, 3 Sep 2009 17:05:16 -0400 (EDT) Received: from stan by teddy.fas.com with local (Exim 3.36 #1 (Debian)) id 1MjJUa-0004Yq-00; Thu, 03 Sep 2009 17:05:16 -0400 Date: Thu, 3 Sep 2009 17:05:16 -0400 From: stan To: Warren Block Message-ID: <20090903210516.GA17399@teddy.fas.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Editor: gVim X-Operating-System: Debian GNU/Linux X-Kernel-Version: 2.4.23 X-Uptime: 17:00:26 up 33 days, 22:02, 1 user, load average: 0.18, 0.18, 0.10 User-Agent: Mutt/1.5.4i Sender: Stan Brown Cc: 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 21:05:17 -0000 On Thu, Sep 03, 2009 at 02:45:52PM -0600, Warren Block 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 > > That 'which perl' may not really help any, since collect-subtrees runs > perl from /usr/local/bin/perl. > > Although I'd expect an error if /usr/local/bin/perl was missing. You > could change your test script to see: > > /usr/bin/perl /usr/local/cricket/cricket/collect-subtrees.pl > > -Warren Block * Rapid City, South Dakota USA Here is the new test script: #!/bin/sh echo started >> /tmp/stan /usr/bin/perl --version >> /tmp/stan echo "++++++" >> /tmp/stan /usr/bin/perl /usr/local/cricket/cricket/collect-subtrees.pl normal >> /tmp/stan echo "++++++" >> /tmp/stan echo done >> /tmp/stan And, here is tthe outptu file: pnoc# cat /tmp/stan started This is perl, v5.8.9 built for i386-freebsd-64int (with 1 registered patch, see perl -V for more detail) Copyright 1987-2008, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. ++++++ ++++++ done When I su - to cricket. and run the collector, it takes a minute or so to run, and generates a lot of output to the screen. Also, wgen I do that, it's Cricket's logfile gets updated. Run from cron the logfile never changes. -- 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.