I'm trying to read the fstab of the connection destination and unmount only the specific mount destination. The following script will read the connection source fstab. How can I load and operate the fstab at the connection destination?
fstsb=/etc/fstab while read line; do expect -c " spawn echo $line |grep 10.200.xxx.xxx | awk -F " " '{print "umount " $2}' expect "~]# " " done </etc/fstab