shell script to genetare a report by running a sql script and email the report

Reply

Join Date: Jan 2008
Posts: 6
Reputation: MONITORING is an unknown quantity at this point 
Solved Threads: 0
MONITORING MONITORING is offline Offline
Newbie Poster

shell script to genetare a report by running a sql script and email the report

 
0
  #1
Jan 23rd, 2008
I need to write a shell script which does the following:

script shld be in such a way that I just need to pass a parameter and it shld generate the report by running a sql script and store it in a directory and email this report in every 30mins .this shell script should pass a parameter (by calling a function) into a sql script and generate a report and I want the name of the report in a specific format.

can someone please pass on the script if anyone has it or let me know how to do this?

any help is appreciated!!
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 2
Reputation: shamgar is an unknown quantity at this point 
Solved Threads: 0
shamgar shamgar is offline Offline
Newbie Poster

Re: shell script to genetare a report by running a sql script and email the report

 
0
  #2
Feb 7th, 2008
This shouldn't be overly difficult, but you really didn't provide enough information in your requirements.

What report should it generate? Or is this all done by the "SQL script"? And what SQL script is this that it's going to run? Do you already have it written? How is the script run? Is it PL/SQL? MySQL? Microsoft SQL? What is the format for the name of the script?

At first blush it sounds like what you really want is to just have a set of SQL scripts with your various reports, and then create cron jobs for them to run.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Shell Scripting Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC