Networker

Re: [Networker] variables dont work in mminfo

2004-03-11 17:55:08
Subject: Re: [Networker] variables dont work in mminfo
From: Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Thu, 11 Mar 2004 14:54:59 -0800
>
> im trying to run mminfo in a script on unix in ksh using this variable, but
> it wont convert the variable to its vaule, any ideas?
>
> here is the command:
>
> mminfo -r ssid -s l180 -q
> 'group=$GROUP,level=full,!incomplete,savetime>last saturday,savetime<last
> sunday'

UNIX shells perform variable expansion within double quotes but not
within single quotes.  This isn't 'mminfo' then, but the shell.  (This
answer may well be different on a Windows command shell).

$ GROUP=Default
$ echo "$GROUP"
Default
$ echo '$GROUP'
$GROUP

I doubt you have a group called $GROUP, so the mminfo fails to match.



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

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

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