xenazfire
January 15th, 2013, 07:20 PM
#!/usr/local/bin/python
until phew.py; do
echo "'phew.py' crashed with exit code $?. Restarting..." >&2
sleep 1
done
File "./phew.sh", line 2
until phew.py; do
^
SyntaxError: invalid syntax
Hi, I need help in fixing this error. Please help. Should I place the python files in the same directory as this bash file? Currently I place this bash file in my root folder and the python files in
/usr/local/bin/
I've done
which python
and outputs
/usr/local/bin/python
until phew.py; do
echo "'phew.py' crashed with exit code $?. Restarting..." >&2
sleep 1
done
File "./phew.sh", line 2
until phew.py; do
^
SyntaxError: invalid syntax
Hi, I need help in fixing this error. Please help. Should I place the python files in the same directory as this bash file? Currently I place this bash file in my root folder and the python files in
/usr/local/bin/
I've done
which python
and outputs
/usr/local/bin/python