I want to re-run a file php every time it ends...
Then I have created i file SH like this
VAR_1=1;
while [[ $VAR_1 != "2" ]]; do
for filename in *.php; do
if [ -- check if command is NOT running -- ]; then
sleep .5
php $filename
fi
done
done
What kind of IF i must use ?