From owner-freebsd-questions@FreeBSD.ORG Fri May 7 10:16:54 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 315EE1065670 for ; Fri, 7 May 2010 10:16:54 +0000 (UTC) (envelope-from fbsdq@peterk.org) Received: from poshta.pknet.net (poshta.pknet.net [216.241.167.213]) by mx1.freebsd.org (Postfix) with ESMTP id C9E898FC18 for ; Fri, 7 May 2010 10:16:53 +0000 (UTC) Received: (qmail 61455 invoked by uid 89); 7 May 2010 10:16:52 -0000 Received: from poshta.pknet.net (HELO smtp.pknet.net) (216.241.167.213) by poshta.pknet.net with SMTP; 7 May 2010 10:16:52 -0000 Received: from 216.241.170.11 (SquirrelMail authenticated user fbsdq@peterk.org) by smtp.pknet.net with HTTP; Fri, 7 May 2010 04:16:52 -0600 Message-ID: <26a016017cc9651627e1f3572b1376bf.squirrel@smtp.pknet.net> In-Reply-To: <4BE3E2FF.5000803@cyanide-studio.com> References: <4BE3E2FF.5000803@cyanide-studio.com> Date: Fri, 7 May 2010 04:16:52 -0600 From: "Peter" To: "Bastien Semene" User-Agent: SquirrelMail/1.4.20-RC2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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:16:54 -0000 > Hi list, > > 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 ? > > Thanks for your help, and sorry if it is a newbie question but I really > can't figure out what is limiting the output. > > -- > Bastien Semene > > 'w' or 'ww' options to ps; ps auxww -> Displays the full command, wraps if the console is too short.