Results 1 to 2 of 2
how to connect shell script with database...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-29-2010 #1
- Join Date
- Jun 2010
Shell Script and Database
- 09-29-2010 #2
Usually, there are commandline client programs for the databases.
Like "mysql" for the mysql daemon.
So you basically call the commandline client program with appropiate parameters and the sql statement in your shell script and then parse the output.
For anything more serious than an occasional task, I would advise not to use bash but perl/python/php/etcYou must always face the curtain with a bow.