Find the answer to your Linux question:
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.
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    3

    Shell Script and Database


    how to connect shell script with database

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,446
    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/etc
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •