LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 05:25 AM   #1
rajini23
Member
 
Registered: Sep 2011
Posts: 162

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, 12:00 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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



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 12:23 PM
NFS mount point problem dasuwal Linux - Software 4 06-04-2010 12:19 PM
NFS mount point problem dasuwal Linux - Server 3 03-31-2010 11:17 PM
mount NFS to mount point then share out the mount point ionic_slim Linux - Networking 2 04-20-2008 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:12 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
Open Source Consulting | Domain Registration