Networker

Re: [Networker] Scripting mminfo on Windows problem

2007-10-02 11:57:12
Subject: Re: [Networker] Scripting mminfo on Windows problem
From: A Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 2 Oct 2007 15:51:52 +0000
On Tue, Oct 02, 2007 at 11:14:22AM -0400, MIchael Leone wrote:

> > for /f %%v in ('mminfo -q near,volrecycle,pool=PHAPRD -r volume') do
> > @ECHO Found a PHAPRD that is RECYCLE! %%v
> 
> That's one line, wrapped ...
> 
> > in my CMD file, it errors out ....
> > 
> > C:\PHA Scripts>for /F %v in ('mminfo -q near volrecycle pool PHAPRD -r 
> volume')
> > do @ECHO Found a PHAPRD that is RECYCLE! %v
> > mminfo: invalid volume name `-r'

Okay, so the mminfo isn't working.  Also notice that your command no
longer has any commas in it, so everything after 'near' is assumed to be
the name of a volume.  This suggests bad quoting.  I hate command.com
quoting and end up having to trial&error it....

I think you need to put doubele-quotes around
"near,volrecycle,pool=PHAPRD" to keep it from separating it into tokens.

> I've tried asking on Windows lists, but since it's a Networker command 
> that is failing in the for loop, I haven't had a whole lot of answers 
> (since it's hard to replicate, if you are not using Networker). So I 
> thought I'd ask here, where I'd have a better chance of interacting with 
> someone who is using Networker in a Windows environment, who might be able 
> to point me at the clue I'm missing here.

It's not networker, it's command.com.

-- 
Darren Dunham                                           ddunham AT taos DOT com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

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

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