Networker

Re: [Networker] Help with calculating time value?

2004-10-16 14:26:06
Subject: Re: [Networker] Help with calculating time value?
From: Shandor <dirtrin AT GMAIL DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Sat, 16 Oct 2004 14:25:02 -0400
On my unix servers, I accomplish this by calling the date command from
the perl script:

$savetime = "yesterday 16:00";
$day = `date +%a`;
if ($day =~ m/mon/i) { $savetime = "3 days ago 16:00";}
@report = `mminfo -av -t $savetime -q near -r volume`;

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

<Prev in Thread] Current Thread [Next in Thread>