1

shell script did read file using cat

view story
linux-howto

http://stackoverflow.com – #!/bin/bash # Reading Manthan Status echo "Manthan cat started" cat /var/www/symmetric-ds-3.1.6/bin/my_mon.txt | while read LINE do echo "Inside my loop" echo "$LINE" if [ "$LINE" == "false" ]; then echo "startedif_my" sudo lsof -n -i:8082 | grep LISTEN | awk '{ print $2 }' | uniq |sudo xargs kill -9; sleep 30; sudo sh /var/www/symmetric-ds-3.1.6/bin/sym --port 8082 --server; break fi done #Reading Panel Status echo "Panel cat started" cat /var/www/symmetric-ds-3.1.6/bin/panel_mon.txt | while read LINE do echo "Inside panel loop (HowTos)