From owner-freebsd-questions@FreeBSD.ORG Wed Sep 5 11:15:45 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E58216A418 for ; Wed, 5 Sep 2007 11:15:45 +0000 (UTC) (envelope-from george.vanev@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.234]) by mx1.freebsd.org (Postfix) with ESMTP id B160713C442 for ; Wed, 5 Sep 2007 11:15:44 +0000 (UTC) (envelope-from george.vanev@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so1880573wxd for ; Wed, 05 Sep 2007 04:15:34 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ShhwhhPGn2Iygal4aYo0+GMtI4/5TH9xOZVqDglB866oIGG2hsMSTFVERD5CAZ2EyXZhfFOoKLv4BO3u4QPHwqlsu8LNUY/k8eAwtw0WxihhGk35mYA5VE8/bvGDbVJY3eZsICe9Sjr3YSo9Xuc7W3ADpyJ2HsCUaQJ2Oxr1nUQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=iS9WxKE2dwnjQbAlUYCVQLZlNIycRe+ypJPGIJJC7RAsWq9UkrPIFHpMNatf11LhR3jXAGoMNDX+On3tNlU6Ao1NmaqD7ybLVeOcafvHzkoP5fWXH4sdFDIcySBiPh0Mk6x1hUIH3f6W8n+dZzcliPE2aBtlpQIA2fNRcb4DuRQ= Received: by 10.90.80.8 with SMTP id d8mr6762996agb.1188990934672; Wed, 05 Sep 2007 04:15:34 -0700 (PDT) Received: by 10.90.75.3 with HTTP; Wed, 5 Sep 2007 04:15:34 -0700 (PDT) Message-ID: <6f4f57f60709050415w585b9452t1738d979dcfeaf66@mail.gmail.com> Date: Wed, 5 Sep 2007 14:15:34 +0300 From: "George Vanev" To: "FreeBSD Questions" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: umount in shell script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: George.Vanev@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2007 11:15:45 -0000 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 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!