How do i make the script auto-restart
How do i make the script auto-restart i think there is some issue in the last line 

    #!/bin/bash
    
    # a shell script that keeps looping until an exit code is given
    
    php_command="php -q -f $1.php "
    shift
    nice $php_command $@
    ERR=$?
    
    exec $0 $@
How do i make the script auto-restart
===

How do i make the script auto-restart i think there is some issue in the last line 

    #!/bin/bash
    
    # a shell script that keeps looping until an exit code is given
    
    php_command="php -q -f $1.php "
    shift
    nice $php_command $@
    ERR=$?
    
    exec $0 $@