For Radoulov


 
Thread Tools Search this Thread
Operating Systems Solaris For Radoulov
# 1  
Old 11-07-2008
For Radoulov

Hi ,
I have got your reply but i have this condition .AS my database is down for more than 6 hours on a particular sunday of the month so i am checking its availability.

for i in 1 2 3 4
do
Get_Mv_Count #fetches the value from remote DB
case $TR in
"" | *[!0-9]* ) printf "database is down as it returns : %s\n " "$TR";;
sleep 10
continue
* ) (( $TR > 0 )) && printf "OK\n " || printf "KO\n";;
echo "DB is up and run your script here "
exit
esac
done
# 2  
Old 11-07-2008
don't post conversations to a thread... thread closed!
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. Linux

Thank you radoulov for your help on netcat command (nc -lp)

Hello, Thank you very much for the line nc -lp <port> . I tried to run simple chat session with nc as it's shown in catonmatDOTorg but failed miserably with that syntax inspite of opening port 7777 by iptables . But your command example is working nicely. So a bagful of thanks :)) Only one... (0 Replies)
Discussion started by: vectrum
0 Replies
Login or Register to Ask a Question