Message: previous - next
Month: April 2015

shell script help needed

From: multi <multi@...>
Date: Sun, 5 Apr 2015 16:37:42 -0500
I'm using Trinity that was installed with exe GNU linux.

I have a bash script to mount a shared folder from a remote server and open it 
in a window. I launch it from a desktop icon. It looks like this:

  sudo mount /mnt/nfs/client1
  nautilus /mnt/nfs/client1

It works fine -- except that, if I close the window and want to reopen it, it 
obviously asks for the password every time.

Is there a way to check to see if it is mounted so that it only asks for the 
password if it is the first time?

Thank you for your time,