66 ps auxww| grep Server | grep -v grep | awk '{ print $2 }' | xargs -i{} -t /usr/sbin/lsof -p {} | grep wls10Here you go
77 history | grep Server | grep -v history | cut -c8- | grep wls10 | head -1 > ~/wls10.txt 78 cat list | xargs -i{} -t ssh {} "$(<wls10.txt)"
Using GNU Parallel you can do it in parallel. Last command will be:
ReplyDeletecat wls10.txt | parallel --slf list --onall
--tag may be useful, too.
Watch the intro videos to learn more: http://pi.dk/1