Networker

Re: [Networker] Does any one have some UNIX scripts that can calculate dates in the future?

2004-03-30 16:59:00
Subject: Re: [Networker] Does any one have some UNIX scripts that can calculate dates in the future?
From: Steve Rader <rader AT GINSENG.HEP.WISC DOT EDU>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Tue, 30 Mar 2004 15:58:56 -0600
i'd use nsavetime, instead of sscomp, and add 365*24*60*60.

steve
- - -

 > ---- Original Message ----
 > From: Ed Skolnik
 > Does any one have some UNIX scripts that can calculate dates in the future
 > ?
 >
 > For example In want to change the retention of some savesets to be  the "s
 > ave set's completion time" plus 1 year.
 >
 >
 >
 > Mminfo -q'client=something,level=full' -r'ssid,sscomp'  | while read ssid
 > sscomp; do
 >
 >
 >
 >    ~~~~~~~~~ calc new date `~~~~~~~~
 >
 > nsrmm -S $ssid -e ${newdate}
 >
 > done

--
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.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=