Networker

Re: [Networker] running mminfo in bourne shell?

2004-11-01 13:59:15
Subject: Re: [Networker] running mminfo in bourne shell?
From: Davina Treiber <Treiber AT HOTPOP DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Mon, 1 Nov 2004 18:57:42 +0000
George Sinclair wrote:
Hi,

I'm trying to run mminfo command inside a bourne shell script as:

date=$1
mminfo -s server -q 'pool=poolname,savetime>=$date'

the value is being passed in as an argument. How can I do this? mminfo
complains every time about invalid value specified for `sscreate'. I've
tried everything I can think of ... all kinds of double and single quote
combinations and escapes and nothing works.

You definitely need double quotes in the mminfo command, since single
quotes don't allow any variable expansion.

You probably also need to quote the $1 in the line:
date="$1".

When you call the script you will need to quote the parameter, e.g.
myscript "20 Oct 2004"

--
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. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

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