Monday, March 16, 2015

showmount command - get nfs share



# more showmount.ksh
#!/bin/ksh
server=`echo $1 | cut -f1 -d':'`
fs=`echo $1 | cut -f2 -d':'`
showmount -e $server | grep "$fs"
#

No comments:

Post a Comment