[CentOS] Syntax Help on a Bash Script
John R. Dennison
jrd at gerdesas.comWed May 4 04:59:52 UTC 2011
- Previous message: [CentOS] Syntax Help on a Bash Script
- Next message: [CentOS] Syntax Help on a Bash Script
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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-0001.sig>
- Previous message: [CentOS] Syntax Help on a Bash Script
- Next message: [CentOS] Syntax Help on a Bash Script
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list