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. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20110503/bb175f81/attachment-0005.sig>