I have program that I want to be able to use I guess you would call them functions.... to run muliple little programs or loops with one menu script. How would I do this. Here is some code I am using. Sorry about the formatting....it doesn't paste well.
echo "***************************** Starting Patrol Menu ***************************************"
echo " "
banner "Patrol TOOLS"
while true
do
echo " "
echo " Choose Option Number & Press Enter to Execute "
echo " "
echo "1. Check Patrol Agent Status 6. Display Operator Event Listener Log "
echo "2. Display Active Patrol processes 7. Display Operator Event Monitor Log "
echo "3. Shutdown Patrol Agent 8. View Patrol All MQEvents Log "
echo "4. Start Patrol Agent 9. Suspend Channel Monitoring "
echo "5. Suspend Channel Monitoring 10. Re-Activate Channel Monitoring "
echo "-->\c"
read
case $REPLY in
1 ) ps -ef | grep PatrolAgent;;
2 ) ps -ef | grep patrol | page ;;
3 ) /mqadmin/patrol/util/pmq_agent_listener_shutdown.ksh;;
4 ) /patrol/StartPatrol.ksh;;
5 ) mv echo "This option not currently Available" ;;
6 ) page /patrol/evntlsr.log ;;;;
7 ) page /patrol/evmon.log ;;
9 ) echo Not available;;
10 ) echo Not availablel;;
8 ) break ;;
esac
done
added code tags for readability --oombera