hi everybody, 
I would like to write a simple script, but i need your help!
what I would like to do is to execute a file 10, 100 times without
opening 10, 100 differnet shells.
the file I want to execute is 'sendapi' and accepts parameters as input.
these parameters are a and b that are integer that I simply want to
increment each times I execute the file.
I wrote this file, but it doesn't set a adn be in the right way.
a should be 4711, then 4713, then 4715.....
b should be 4712, then 4714, then 4716....


i=0
echo "Questa e la variabile $i"
while [ $i -le 10 ]
do
echo "$i"
a='expr $i+4710+1'
a='expr $i+4710+1'
./sendapi 192.168.139.134  $a $b 1000 localhost 4001 2
i='expr $i+1'
done

Any help is appreciate!
Thanks
Rosella

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to