#!/bin/ksh # # Usage rpc_resp.ksh EnvFile LsnrName # # where: # # EnvFile : Fully qualified environment file # LsnrName: Name of the reports listener # EnvFile=$1 LsnrName=$2 . $EnvFile # source environment file # check RPC listener process lsnrctl status $LsnrName | grep '^Uptime' > /dev/null &&\ echo "em_result=1" ||\ echo "em_result=0"