Hi guys,
Here's part of my script :
But I don't know when the loadData finish, so I don't want my script do another loadData while previous loadData hasn't finished, so the idea is :
a) I want to run another loadData 600 seconds after the loadData finish or ..
b) if loadData takes more than 600 seconds, wait another 600 seconds.
Any idea how to do that guys ??
Thank you very much
Here's part of my script :
Code:
loadData(){
...
}
#main program
while true
do
loadData
sleep 600
done
But I don't know when the loadData finish, so I don't want my script do another loadData while previous loadData hasn't finished, so the idea is :
a) I want to run another loadData 600 seconds after the loadData finish or ..
b) if loadData takes more than 600 seconds, wait another 600 seconds.
Any idea how to do that guys ??
Thank you very much