From: Sriman Kumaran (sriman_kumaran@yahoo.co.uk)
Date: Wed Aug 02 2006 - 02:08:24 EDT
Dear scripting gurus,
First please don't scream for asking this question here. Servers in question are Sol 8. I am trying to unmount file systems those are mounted remotly. My script:
myhosts="branch01 \
branch02 \
branch03"
## This part working:
for mhsts in $myhosts
do
ssh $mhsts "mount |grep -v vol0 |egrep 'tree50[4-5]'|nawk '{print \$1}'"
done
###This part doesn't work
for mhsts in $myhosts
do
ssh $mhsts " \
for mnts in `mount |grep -v vol0 |egrep 'tree50[4-5]'|nawk '{print \$1}'` \
do \
umount -f \$mnts \
done"
done
What am I doing wrong here? or What is the right way to achive this?
Thanks
Sriman
---------------------------------
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:40:30 EDT