By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,934 Members | 1,366 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,934 IT Pros & Developers. It's quick & easy.

How to write a shell script to execute a database query

P: 6
I am going to run a cron job to get a query executed daily.
So i want to write a shell script for the cron job. What is the best way of doing that.??
Oct 16 '07 #1
Share this Question
Share on Google+
1 Reply


Motoma
Expert 2.5K+
P: 3,235
I am going to run a cron job to get a query executed daily.
So i want to write a shell script for the cron job. What is the best way of doing that.??
1) Figure out the command line call that will execute your query.
2) Put that command in a shell script.
3) Add a reference to that file in your cron configuration.
Oct 18 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.