From owner-freebsd-questions Thu Nov 9 1: 1:35 2000 Delivered-To: freebsd-questions@freebsd.org Received: from srcso.globis.ru (globis.ru [212.248.80.7]) by hub.freebsd.org (Postfix) with ESMTP id 31DD737B479 for ; Thu, 9 Nov 2000 01:01:31 -0800 (PST) Received: from raduga.dyndns.org (raduga.sochi.net [212.248.82.76]) by srcso.globis.ru (8.9.3/8.9.3) with ESMTP id MAA16125 for ; Thu, 9 Nov 2000 12:23:29 +0300 (MSK) (envelope-from igor@raduga.dyndns.org) Received: (from igor@localhost) by raduga.dyndns.org (8.10.1/8.10.0) id eA991PK11701 for freebsd-questions@FreeBSD.ORG; Thu, 9 Nov 2000 12:01:25 +0300 Date: Thu, 9 Nov 2000 12:01:24 +0300 From: Igor Roboul To: freebsd-questions@FreeBSD.ORG Subject: Re: Process Log Message-ID: <20001109120124.B11436@linux.rainbow> Reply-To: igorr@crosswinds.net Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <3A0A6487.8438F5FF@conectia.es> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre4i In-Reply-To: <3A0A6487.8438F5FF@conectia.es>; from adolfo@conectia.es on Thu, Nov 09, 2000 at 09:47:03AM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Nov 09, 2000 at 09:47:03AM +0100, - wrote: > Hi all: > > How can I have a log of all the processes started by the system? In a > format similar to 'ps'. I could not understand what do you wish :-( If you wish just see ALL processes started on your system, then 'man ps' :-) If you wish collect 'ps' information in some file second-by-second (or minute-by-minute) then make small shell script like this #!/bin/csh -f set logfile=/var/log/ps.log set path=(/bin /sbin /usr/bin /usr/sbin) echo "##########" >>$logfile echo "Processes snapshot on `date` :" >>$logfile ps aux >>$logfile echo "##########" >>$logfile And run this script as cronjob. If you wish make something else, then please give more information about what do you wish. -- Igor Roboul, Unix System Administrator & Programmer @ sanatorium "Raduga", Sochi, Russia http://www.brainbench.com/transcript.jsp?pid=304744 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message