Networker

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

2004-03-30 18:23:48
Subject: Re: [Networker] Does any one have some UNIX scripts that can calculate dates in the future?
From: "Christopher T. Beers" <ctbeers AT SYR DOT EDU>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Tue, 30 Mar 2004 18:23:33 -0500
Ed:

see the nsr_getdate man page.  Networker can do this for you

nsrmm -S ssid -e "+ 365 days"

--
Christopher T. Beers
UNIX Systems Engineer - Syracuse University
250 Machinery Hall      Syracuse, NY 13244
(315) 443-4103 Office   (315) 443-1621 Fax

--On Tuesday, March 30, 2004 3:41 PM -0600 Ed Skolnik
<eskolnik AT INTERPUBLIC DOT COM> wrote:

| 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
| "save 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
|
|
|
|
|
|
|
| Ed
|
| Any views or opinions presented in this email are solely those of the
| author and do not necessarily represent those of the company. Also this
| message may  contain information which may be confidential and
| privileged. Unless you are the intended recipient (or authorized to
| receive this message for the intended recipient), you may not use, copy,
| disseminate or disclose to anyone the message or any information
| contained in the message. If you have received the message in error,
| please advise the sender by reply e-mail, and delete the message.  Thank
| you very much.
|
|
|
|
|
| --
| 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.
| =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
|

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