From owner-freebsd-questions@FreeBSD.ORG Fri May 7 10:44:45 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 624541065747 for ; Fri, 7 May 2010 10:44:45 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: from extmail-01.people.net.au (extmail-01.people.net.au [202.154.123.98]) by mx1.freebsd.org (Postfix) with SMTP id 9F9F48FC1B for ; Fri, 7 May 2010 10:44:44 +0000 (UTC) Received: (qmail 16142 invoked from network); 7 May 2010 10:18:00 -0000 Received: from unknown (HELO smtp.phoenix) (218.215.168.128) by extmail-01.people.net.au with SMTP; 7 May 2010 10:18:00 -0000 Received: by smtp.phoenix (Postfix, from userid 1001) id 0C3D017277; Fri, 7 May 2010 20:18:00 +1000 (EST) Date: Fri, 7 May 2010 20:17:59 +1000 From: andrew clarke To: Bastien Semene Message-ID: <20100507101759.GA58651@ozzmosis.com> References: <4BE3E2FF.5000803@cyanide-studio.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BE3E2FF.5000803@cyanide-studio.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-questions@freebsd.org Subject: Re: Number of columns when redirecting ps command stdout to a file 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: Fri, 07 May 2010 10:44:45 -0000 On Fri 2010-05-07 11:53:03 UTC+0200, Bastien Semene (bsemene@cyanide-studio.com) wrote: > I wish to log the 'ps' command output in a file through a cron job. > If I execute the command on the console, the result lines are > truncated depending on the number of columns of the client console, > what is fine. > > But when the command is executed by cron and redirected to a file, > there's a maximum of 80 char columns. Where is set this limitation ? > How can I remove it ? >From the ps(1) man page: "If the -w option is specified more than once, ps will use as many columns as necessary without regard for your window size."