Displaying 1 result from an estimated 1 matches for "bobster".
Did you mean:
jobster
2011 May 04
4
Syntax Help on a Bash Script
...employees values ($1, '$2','$3', $4)"
$MYSQL test << EOF
$statement
EOF
If [ $? -eq 0 ]
then
echo "Data successfully added"
else
echo "Problem adding data"
fi
fi
and here is the error I get:
[Bobster at localhost ~]$ ./mtest4 5 Johnson John 120000
./mtest4: line 15: syntax error near unexpected token `then'
./mtest4: line 15: ` then'
Thanks in advance for any inputs.
Bobster