From owner-freebsd-questions Sun Nov 24 22:48: 2 2002 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 D4F5F37B401 for ; Sun, 24 Nov 2002 22:48:01 -0800 (PST) Received: from mgw1-out.MEIway.com (mgw1.meiway.com [212.73.210.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8419043E88 for ; Sun, 24 Nov 2002 22:48:00 -0800 (PST) (envelope-from LConrad@Go2France.com) Received: from VirusGate.MEIway.com (virus-gate.meiway.com [212.73.210.91]) by mgw1-out.MEIway.com (Postfix Relay Hub) with ESMTP id 72AA8EF6A5 for ; Mon, 25 Nov 2002 07:47:46 +0100 (CET) Received: from localhost (localhost.meiway.com [127.0.0.1]) by VirusGate.MEIway.com (Postfix) with SMTP id A637A5D009 for ; Mon, 25 Nov 2002 07:47:58 +0100 (CET) Received: from mail.Go2France.com (ms1.meiway.com [212.73.210.73]) by VirusGate.MEIway.com (Postfix) with ESMTP id 4A63C5D008 for ; Mon, 25 Nov 2002 07:47:58 +0100 (CET) Received: from tx0-go2france-c.Go2France.com [193.252.44.38] by mail.Go2France.com with ESMTP (SMTPD32-6.06) id AA1A4A5A029A; Mon, 25 Nov 2002 07:58:34 +0100 Message-Id: <5.1.1.6.2.20021125074602.01c98e80@mail.go2france.com> X-Sender: LConrad@Go2France.com@mail.go2france.com X-Mailer: QUALCOMM Windows Eudora Version 5.1.1 Date: Mon, 25 Nov 2002 07:47:46 +0100 To: freebsd-questions@freebsd.org From: Len Conrad Subject: Re: .sh interactive ok, from crontab, not In-Reply-To: References: <5.1.1.6.2.20021125005050.01e0c638@mail.go2france.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >Okay, I was able to duplicate your problem. It is due to the output of 'ps' >being truncated to 80 columns, the default terminal size. You are likely >running a wide terminal display on your interactive session (as I do) yep, TeraTerm on Windows, very wide display. >but cron will see the default 80 column terminal. This is the difference >between the two. ugh, amazing! >Try running 'ps' using the -w flag (wide column mode): > > if ( ps -auxw | grep -iq "^root.*master" ) ; then > >I've tested this and it works. here, too, thanks!! Len To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message