Date: Sun, 24 Nov 2002 20:55:28 -0800 From: "Paul A. Scott" <pscott@skycoast.us> To: Len Conrad <LConrad@go2france.com>, <freebsd-questions@freebsd.org> Subject: Re: .sh interactive ok, from crontab, not Message-ID: <BA06ED40.14B73%pscott@skycoast.us> In-Reply-To: <5.1.1.6.2.20021125005050.01e0c638@mail.go2france.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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) but cron will see the default 80 column terminal. This is the difference between the two. 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. Paul -- Paul A. Scott mailto:pscott@skycoast.us http://skycoast.us/pscott/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BA06ED40.14B73%pscott>