LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 09-10-2013, 06:25 AM   #1
rajini23
Member
 
Registered: Sep 2011
Posts: 152

Rep: Reputation: Disabled
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
 
Old 09-12-2013, 01:00 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,581

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS mount point mount as readonly on AIX davinders Linux - Server 1 09-25-2011 01:23 PM
NFS mount point problem dasuwal Linux - Software 4 06-04-2010 01:19 PM
NFS mount point problem dasuwal Linux - Server 3 04-01-2010 12:17 AM
mount NFS to mount point then share out the mount point ionic_slim Linux - Networking 2 04-20-2008 01:17 PM


All times are GMT -5. The time now is 11:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration