I am trying to execute a command after execution of a shell script. Following code is what i have tried so far:
#! /bin/bash
exec >> /tmp/foo.log
#$REPO and $AUTHOR are environmental varibles
echo "test" >> /tmp/foo.log
echo $REPO >> /tmp/foo.log
echo $AUTHOR >> /tmp/foo.log
exit 0
cd /var/www/html/websvn
php remove_commits.php $REPO $AUTHOR
The above script is not working for some reason. How can i fix this? Need your help badly.
catin the preceding comment should obviously beexec.)