I have a producer and consumer application, each can take parameter
and run for 10 minutes.
I want to write a script that allow me to pass in different paramters
and save the results for later. However, I cannot come up with a write
script.
Can someone suggest a good approach or any tool that can help?
My scenario is that the consumer has to start first always.
Once the first set of parameter finish. the producer will not start
until the consumer for the next parameter set starts
I am thinking something like this
Consumer:
for ($i=1;$i<10;$i++)
startconsumer.sh -interval $i
sleep 1
end
Producer:
for ($i=1;$i<10;$i++)
startproducer.sh -interval $i
# wait till consumer is done
sleep 1;
end
I am trying to go with an approach that checking if the consumer/producer finish by checking a log file, but it does not seem to work.
Maybe someone has done something similar already