Hi
You can look it in /etc/mtab
Fast solution would be this:
[ -z "$(grep /mnt/nfs/client1 /etc/mtab)" ] && sudo mount
192.168.0.2:/home/dpjungk/Share /mnt/nfs/client1
nautilus /mnt/nfs/client1
Cheers,
Adonay-Jonay Sanz
www.kademar.org
El 05/04/15 a les 23:37, multi ha escrit:
Hi,
I'm using Trinity 3.5.13.2 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 192.168.0.2:/home/dpjungk/Share /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,
Don
---------------------------------------------------------------------
To unsubscribe, e-mail: trinity-users-unsubscribe(a)lists.pearsoncomputing.net
For additional commands, e-mail: trinity-users-help(a)lists.pearsoncomputing.net
Read list messages on the web archive:
http://trinity-users.pearsoncomputing.net/
Please remember not to top-post:
http://trinity.pearsoncomputing.net/mailing_lists/#top-posting