> Hi, Hongwei Li > > #first mount > mount sever2:/opt /mnt > > #filter the output of 'mount' and put it in control file. I think that > it's > ok to use the comando mount > mount | sed -n /server2/p > /tmp/control > > #If there is something in '/tmp/control', do what you want > if [ -s /tmp/control ]; then > echo "Here do something" > fi > done > > > > ICL > > Hi, I've used Paul's sh script and it works. Thank you anyway. Hongwei