LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   script for nfs mount point (http://www.linuxquestions.org/questions/linux-desktop-74/script-for-nfs-mount-point-4175476576/)

rajini23 09-10-2013 05:25 AM

script for nfs mount point
 
Hi ,

i have create the bash script for nfs but in this script asking for mount point only once it is it prompting for second time.

example: do you wants to create any other mount point [yes/no]?
note(if i give yes it should ask me to add the mount point else it should proceed with next step) it should ask each and every time if i give "yes" and add the mount point in it...

myscript:
echo " enter the mount point name"
read e
echo "$e *(rw,sync,no_root_squash)" >>/etc/exports
"Note:here it should ask again if any mount point needs to be added or not?
if yes it should start from again.."

service nfs restart
exportfs -r
exportfs -v
chkconfig nfs on

lleb 09-12-2013 12:00 PM

sounds like a good idea, post your script as well as the results of running it with sh -xvv for full details.


folks around here will not write the script for you, but are more then willing to help fix what you have done.


All times are GMT -5. The time now is 11:22 AM.