[rrd-users] Re: Creating multiple DS in batch mode

Dave Lugo dlugo at etherboy.com
Wed Feb 25 01:08:40 MET 2004


On Wed, 25 Feb 2004, Stephen Cheung wrote:
> 
> I have been tinkering with this for a while, using Perl, but being a novice,
> cannot figure out what the loop structure would be...
> 

I don't know perl (I keep meaning to learn it...), but something in sh 
would be:

#!/bin/sh
N=1
echo -n "rrdtool create file.rrd --step 300 " > outfile
until
 [ N = 2048 ]
 do
   echo -n  "DS:"$N":etc...etc....  " >> outfile
   N=`expr $N + 1`
done


(adjust the syntax as needed)

Regards,

Dave

-- 
--------------------------------------------------------
Dave Lugo   dlugo at etherboy.com    LC Unit #260   TINLC
Have you hugged your firewall today?   No spam, thanks.
--------------------------------------------------------
Are you the police?  . . . .  No ma'am, we're sysadmins.

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list