From owner-freebsd-questions@FreeBSD.ORG Fri May 7 12:20:19 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 6881A1065680 for ; Fri, 7 May 2010 12:20:19 +0000 (UTC) (envelope-from bsemene@cyanide-studio.com) Received: from relay.cyanide-studio.com (relay.cyanide-studio.com [91.121.7.6]) by mx1.freebsd.org (Postfix) with ESMTP id 230318FC08 for ; Fri, 7 May 2010 12:20:18 +0000 (UTC) Received: from mail.cyanide-studio.com (LAubervilliers-153-52-12-153.w217-128.abo.wanadoo.fr [217.128.107.153]) by relay.cyanide-studio.com (Postfix) with ESMTP id 783F3963CD3 for ; Fri, 7 May 2010 12:20:17 +0000 (UTC) Received: from localhost (unknown [10.1.8.14]) by mail.cyanide-studio.com (Postfix) with ESMTP id 2D9A217BF42A for ; Fri, 7 May 2010 14:20:17 +0200 (CEST) Received: from mail.cyanide-studio.com ([10.1.8.3]) by localhost (mailguard.cyanide-studio.com [10.1.8.14]) (amavisd-maia, port 10024) with ESMTP id 88566-02 for ; Fri, 7 May 2010 14:20:17 +0200 (CEST) Received: from [10.1.8.123] (unknown [10.1.8.123]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: bsemene@cyanide-studio.com) by mail.cyanide-studio.com (Postfix) with ESMTP id 01EBF17BF428 for ; Fri, 7 May 2010 14:20:17 +0200 (CEST) Message-ID: <4BE40580.80306@cyanide-studio.com> Date: Fri, 07 May 2010 14:20:16 +0200 From: Bastien Semene User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 CC: freebsd-questions@freebsd.org References: <4BE3E2FF.5000803@cyanide-studio.com> <26a016017cc9651627e1f3572b1376bf.squirrel@smtp.pknet.net> In-Reply-To: <26a016017cc9651627e1f3572b1376bf.squirrel@smtp.pknet.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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 12:20:19 -0000 Thanks, I didn't think it is a program limitation, probably because of old terminals limitations. Le 07/05/2010 12:16, Peter a écrit : >> 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. > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- Bastien Semene Administrateur Réseau& Système Cyanide Studio - FRANCE