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 [EMAIL PROTECTED] 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:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
