On Tue, May 03, 2011 at 11:33:52PM -0500, Robert wrote:
#!/bin/bash # send data to the table in the MySQL database
MYSQL='which mysql'
You want "MYSQL=$(which mysql)"
If [ $? -eq 0 ] then echo "Data successfully added" else echo "Problem adding data" fi
"If" is incorrect.
John