I'm new in shell programming ... basically I'm novice at all but I need a simple script to do while loop and execute a php script . I've tried the following :
!/bin/bash
i=0
while[ i < 13 ]
do
php /var/www/html/pos.php &
(( i++ ))
done
but for some reasons the syntax is not good ... I'm getting error line 4: syntax error near unexpected token `do'
#!. Because you have no space (the shell will be looking for a commandwhile[, which probably does not exist), thedois an unexpected keyword - there is no preceding loop that requires it, so you get the syntax error.