Date: Wed, 5 Sep 2007 14:15:34 +0300 From: "George Vanev" <george.vanev@gmail.com> To: "FreeBSD Questions" <freebsd-questions@freebsd.org> Subject: umount in shell script Message-ID: <6f4f57f60709050415w585b9452t1738d979dcfeaf66@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi all, I have the following script: #!/bin/sh mnt_path='//user@server1/archive' mnt_ip='xxx.xxx.xxx.xxx' mkdir /usr/tmp_mnt mount_smbfs -N -I $mnt_ip $mnt_path /usr/tmp_mnt #rotate files #dump mysql database #gzip #encrypt #copy to /usr/tmp_mnt umount /usr/tmp_mnt <EOF> Sometimes /usr/tmp_mnt is still mounted. It's random behavior. I didn't noticed any logic when it is unmounted or not. OS: FreeBSD 6.2-RELEASE Thank you!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6f4f57f60709050415w585b9452t1738d979dcfeaf66>