double execution in script
Hai all,
am havin 2 scripts as follows :
Script one :
***********
#Script used to monitor Apache Server availability
LOGFILE=/tmp/apache_updown.log
adapcctl.sh status
if [ $? -eq 1 ]
then
echo "$ORACLE_SID - Apache is down" > $LOGFILE
exit 1
else
exit 0
fi
Script two :
***********
#Script used to monitor creation of forms dump files
FORMS_DIR=$1
LOGFILE=/tmp/forms_dumpfiles_$ORACLE_SID.log
ls -l $FORMS_DIR/f60webmx_dump* > $LOGFILE
if [ $? -eq 0 ]
then
# There are dump files, return an error code
exit 1
else
exit 0
fi
How can I have the above 2 scripts in a single script such that when it is executed it will run both the script and give the output..
Please Guide
Yusuf
|