Re: [Networker] Scripting help
2011-12-06 13:49:28
In regard to: [Networker] Scripting help, tlamana said (at 10:32am on Dec...:
OK, I stripped it down to "mminfo -q "savetime>=today" and was able to
list the two volumes that were written. The question would be how do
you scrape the volume names so they can be inserted into the next
command?
Assuming you don't have spaces in your volume names, you should just
loop over the volume names and run nsrmm on each one.
I don't do Windows batch scripting, but on UNIX/Linux with a
Bourne-derived shell, it would be something like
for v in `mminfo -q 'savetime>=today' -r volume`
do
nsrmm -o readonly $v
done
I'll leave translating that to batch or PowerShell to you.
Tim
--
Tim Mooney Tim.Mooney AT ndsu DOT
edu
Enterprise Computing & Infrastructure 701-231-1076 (Voice)
Room 242-J6, IACC Building 701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
To sign off this list, send email to listserv AT listserv.temple DOT edu and type
"signoff networker" in the body of the email. Please write to networker-request
AT listserv.temple DOT edu if you have any problems with this list. You can access the
archives at http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER
|
|
|