I have the following script running:
#!/bin/sh
while [ 1 ]; do
php timer.php 1
sleep 1.5
done
Does "sleep 1.5" get called after "php timer.php 1" is finished or is each call fired instantly after the previous one?
I actually have two scripts like the ones above and may eventually have even more, so I'm figuring out what are the effects of combining them like so:
#!/bin/sh
while [ 1 ]; do
php timer.php 1
php timer.php 2
sleep 1.5
done
So does each call wait on the other one to finish? or do they fire off right after each other?
#!/bin/sh
while [ 1 ]; do
php timer.php 1
sleep 1.5
done
Does "sleep 1.5" get called after "php timer.php 1" is finished or is each call fired instantly after the previous one?
I actually have two scripts like the ones above and may eventually have even more, so I'm figuring out what are the effects of combining them like so:
#!/bin/sh
while [ 1 ]; do
php timer.php 1
php timer.php 2
sleep 1.5
done
So does each call wait on the other one to finish? or do they fire off right after each other?