Input script (oradbproc3.lis)looks like this:
sp18cw:tnslsnr TRN::The DB Listener process on SP18 is down:
sp18cw:FNDLIBR:appltrn:The TRN Concurrent Manager process on SP18 is down:
Korn shell script looks like this:
for line in `cat /bin/danka/oradbproc3.lis`
do
SERVER=`echo "$line"|cut -f 1 -d :`
PROC=`echo "$line"|cut -f 2 -d :`
USER=`echo "$line"|cut -f 3 -d :`
MAILMSG=`echo "$line"|cut -f 4 -d :`
echo $SERVER
done
My problem is that the cut command does not seem to be working as it should. Anyone got any suggestions before I decide to quit this business and open up a hot dog stand somewhere???(Just kiddin, it's not that bad...yet) Thanks
sp18cw:tnslsnr TRN::The DB Listener process on SP18 is down:
sp18cw:FNDLIBR:appltrn:The TRN Concurrent Manager process on SP18 is down:
Korn shell script looks like this:
for line in `cat /bin/danka/oradbproc3.lis`
do
SERVER=`echo "$line"|cut -f 1 -d :`
PROC=`echo "$line"|cut -f 2 -d :`
USER=`echo "$line"|cut -f 3 -d :`
MAILMSG=`echo "$line"|cut -f 4 -d :`
echo $SERVER
done
My problem is that the cut command does not seem to be working as it should. Anyone got any suggestions before I decide to quit this business and open up a hot dog stand somewhere???(Just kiddin, it's not that bad...yet) Thanks