Hi,
Can somebody pls help me? I need to write 2 shell scripts in Sun Solaris operating system which would do this:
- go to the specified directory - I am using alias for it at the moment
- start the particular sql script with the output log as same as the script but with timestamp e. g. .dy-m-d.log
- when it finishes - echo "script finished successfully"
then I need to do another script little bit similar but with connection to the db:
- go to the specified directory - I am using alias for it at the moment as well
- start the particular sql script with output log as same as the script but with timestamp e. g. .dy-m-d-a.log
- when it finishes with the count=0 exit
- when it finishes with the count>0 connect to the db
- execute command:....
- after it finishes disconnect from the db and start the script in the step 2. but with .dy-m-d-b.log
- after it finishes echo "count from 1st script and the second script"
I would appropriate your help as I am new to the shell scripting and still learning.
Thanks in advance