Luca Manganelli
2006-Sep-06 09:27 UTC
[Samba] Bash/perl: how to know if a samba directory is mounted?
Hi, I am writing an Perl application that automatically mounts a samba directory. But I would like to know if that directory is already mounted by samba (i.e. in multiple logins, that directory could be mounted only on the first login) ?
Rory Vieira
2006-Sep-06 09:43 UTC
[Samba] Bash/perl: how to know if a samba directory is mounted?
Luca, On 9/6/06, Luca Manganelli <luca76@gmail.com> wrote:> Hi, > > I am writing an Perl application that automatically mounts a samba directory. > > But I would like to know if that directory is already mounted by samba > (i.e. in multiple logins, that directory could be mounted only on the > first login) ? > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >why not: MOUNTED=`mount|grep <mounted_directory>` if [ ! -n $MOUNTED ]; then mount <yur_dir> fi Cheers, -- Rory Vieira rory dot vieira at gmail dot com