I want to call a KSH script a KSH script.
Script 1 performs the following:
- Loops thru a list of database server
- Perfroms a query
- Appends output from query from each database server to a txtfile
Script 2 performs the following:
Creates an HTML file that displays the each row in the text file in an HTML File
Emails the HTML file with the query results to a list of receipeints
Usage: KSH backup_report.ksh qry_rslt_textfile.txt
(txtfile contains results of query from each server)
Is the following syntax correct?
#! /bin/ksh
< Start of Script 1 Code>
.
.
.
< End of Script 1 Code>
< Start of Script 2 Code - Call Script 2>
/sybase/dba/backup_report.ksh qry_rslt_textfile.txt
<End of Script 2 Code>