1

Comparing two strings (awk)

view story
linux-howto

http://www.unix.com – Hi All, Code: oasddevilz2:/export/home/oracle> more sso1.ksh #!/bin/ksh set -x httpstatus="HTTP_Server Alive" . /export/home/oracle/.profile_sso if [ `/app/oracle/fmwhome/sso_home/opmn/bin/opmnctl status | grep HTTP_Server | awk '{print $1 " " $7}'` = "$httpstatus" ]; then         echo "SSO OPMN components started successfully" else     echo "SSO OPMN failed to start"     exit fi # the output of /app/oracle/fmwhome/sso_home/opmn/bin/opmnctl status | grep HTTP_Server | awk '{print $1 " & (HowTos)