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
--
<zu22> Hellow: bears are wonderful animals
<zu22> I love bears!
<zu22> I want to feed them marshmellows.
pgpZXRYnJ094c.pgp
Description: PGP signature
_______________________________________________ CentOS mailing list [email protected] http://lists.centos.org/mailman/listinfo/centos

