GIC1986
September 19, 2008, 3:32am
1
one of my script as follows
HOME=/apps/logs
mv $HOME/cron.log $HOME/cron.log.`date +%Y-%m-%d`
touch $HOME/cron.log
fi
i am getting error as follows
on the last line we are getting ...
"syntax error near unexpected token `fi' "
please suggest....
nua7
September 19, 2008, 3:36am
2
There is no need of "fi" , since there is no "if".
Please remove the fi statement. If there is a if condition, please paste your whole script.
era
September 19, 2008, 3:43am
3
An "if" is terminated by a "fi" and you don't have any "if" to go with the "fi". Take it out, or figure out what should be in the "if" and put it back.
GIC1986
September 19, 2008, 3:43am
4
ok...
there no if condition at all....
thanks you...
No "fi" is required at all