search for: mtest4

Displaying 1 result from an estimated 1 matches for "mtest4".

Did you mean: test4
2011 May 04
4
Syntax Help on a Bash Script
...x and would like feedback on this script I'm trying to understand from an example I'm working on.. Oh, running Centos 5.6 Anyhow, I run this bash script: #!/bin/bash # send data to the table in the MySQL database MYSQL='which mysql' if [ $# -ne 4 ] then echo "Usage: mtest4 empid lastname firstname salary" else statement="insert into employees values ($1, '$2','$3', $4)" $MYSQL test << EOF $statement EOF If [ $? -eq 0 ] then echo "Data successfully added" else echo...