From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: RichGlazier@netscape.net (Rich Glazier) Newsgroups: gmane.os.tru64.managers Subject: SUMMARY:collect in historical mode Date: Wed, 29 Oct 2003 12:43:05 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <01994B28.3DE8CD29.3ED58B64@netscape.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1067449414 8029 80.91.224.253 (29 Oct 2003 17:43:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Oct 2003 17:43:34 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Oct 29 18:43:31 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1AEuLy-0006YS-00 for ; Wed, 29 Oct 2003 18:43:30 +0100 Original-Received: (qmail 31704 invoked by uid 5); 29 Oct 2003 17:43:21 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 31679 invoked by uid 49493); 29 Oct 2003 17:43:21 -0000 Original-Received: from richglazier@netscape.net by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-2.6/5.0):. Processed in 1.156971 secs); 29 Oct 2003 17:43:21 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 29 Oct 2003 17:43:20 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HNJ00D32587RL@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 29 Oct 2003 12:43:19 -0500 (EST) Original-Received: from imo-d02.mx.aol.com (imo-d02.mx.aol.com [205.188.157.34]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HNJ003DC580UT@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 29 Oct 2003 12:43:13 -0500 (EST) Original-Received: from richglazier@netscape.net by imo-d02.mx.aol.com (mail_out_v36_r1.1.) id g.1b3.85aaf66 (22680) for ; Wed, 29 Oct 2003 12:43:06 -0500 (EST) Original-Received: from netscape.net (mow-m04.webmail.aol.com [64.12.184.132]) by air-in04.mx.aol.com (v97.8) with ESMTP id MAILININ41-58983f9ffc293b2; Wed, 29 Oct 2003 12:43:06 -0500 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Atlas Mailer 2.0 X-AOL-IP: 65.201.47.246 Xref: main.gmane.org gmane.os.tru64.managers:5684 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5684 Thanks to Bugs and Judith Reed for thier feedback. I used Bugs' instructions (below), but with my own collect flags and in ksh instead of csh. ----------------- I have to do the same thing The new collect log file is started every nite with this: ======================== # Script to start collect by cron at 1 minute after midnite set hour = `date +%H` set today = `date | awk '{print $1 $2 $3}'` /usr/sbin/collect -s pmdnc -R 23h50m -i 30 -f /local/logs/collect/collect_${today}_${hour} ======================== If a reboot during the day occurs, this is run at startup to continue writting the file - never had a problem... /sbin/rc3.d/S99collect ======================== #!/bin/csh set hour = `date +%H` set minute = `date +%M` @ tot_minutes = $hour * 60 + $minute @ duration = 1430 - $tot_minutes echo $tot_minutes dur = $duration set today = `date | awk '{print $1 $2 $3}'` /usr/sbin/collect -s pmdnc -R ${duration}m -o f -i 30 -f /local/logs/collect/collect_${today}_$hour & ======================== What this script does is count the minutes remaining until 23:50, and runs with a new duration... Bugs __________________________________________________________________ McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire computer. Get your free trial today! http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 Get AOL Instant Messenger 5.1 free of charge. Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455