Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Nov 2000 12:01:24 +0300
From:      Igor Roboul <igor@raduga.dyndns.org>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Process Log
Message-ID:  <20001109120124.B11436@linux.rainbow>
In-Reply-To: <3A0A6487.8438F5FF@conectia.es>; from adolfo@conectia.es on Thu, Nov 09, 2000 at 09:47:03AM %2B0100
References:  <3A0A6487.8438F5FF@conectia.es>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001109120124.B11436>