Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Oct 2013 11:43:03 +0000
From:      Abbey Dixson <abbeydixson8@gmail.com>
To:        questions@freebsd.org
Subject:   www.freebsd.org
Message-ID:  <047d7b6dca5229ba5204e9dfb856@google.com>

next in thread | raw e-mail | index | archive | help
PGRpdiBkaXI9Imx0ciI+PGRpdiAgDQpzdHlsZT0iZm9udC1zaXplOjEzLjMzMzMzMzk2OTExNjIx
MXB4O2ZvbnQtZmFtaWx5OmFyaWFsLHNhbnMtc2VyaWYiPjxwICANCmNsYXNzPSJNc29Ob3JtYWwi
IHN0eWxlPSJtYXJnaW4tYm90dG9tOjEycHQiPkhpLDwvcD48L2Rpdj48ZGl2ICANCnN0eWxlPSJm
b250LXNpemU6MTMuMzMzMzMzOTY5MTE2MjExcHg7Zm9udC1mYW1pbHk6YXJpYWwsc2Fucy1zZXJp
ZiI+DQo8cCBjbGFzcz0iTXNvTm9ybWFsIj5JIGNhbWUgYWNyb3NzIHlvdXIgd2Vic2l0ZSBhbmQg
d2FudGVkIHRvIHNlbmQgeW91IGEgIA0KcXVpY2sgbm90ZS4gV2l0aCBhIGZldyBzaW1wbGUgY2hh
bmdlcyB0byBtYWtlIHlvdXIgc2l0ZSBtb3JlIFNFTy1mcmllbmRseSAgDQpJkm0gc3VyZSB5b3Ug
Y2FuIGNvbnZlcnQgbW9yZSB2aXNpdG9ycyBpbnRvIGxlYWRzIGFuZCBnZXQgaXQgcGxhY2VkIGhp
Z2hlciAgDQppbiB0aGUgb3JnYW5pYyBzZWFyY2ggcmVzdWx0cywgZm9yIGtleXdvcmRzIHRoYXQg
bWF0dGVyIHRvIHlvdSB0aGUgbW9zdC48L3A+DQo8L2Rpdj48ZGl2ICANCnN0eWxlPSJmb250LXNp
emU6MTMuMzMzMzMzOTY5MTE2MjExcHg7Zm9udC1mYW1pbHk6YXJpYWwsc2Fucy1zZXJpZiI+PHAg
IA0KY2xhc3M9Ik1zb05vcm1hbCI+oDwvcD48L2Rpdj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ls
eTphcmlhbCxzYW5zLXNlcmlmIj48cCAgDQpjbGFzcz0iTXNvTm9ybWFsIj48c3BhbiAgDQpzdHls
ZT0iZm9udC1zaXplOjcuNXB0O2NvbG9yOnJnYig2MSwxMzMsMTk4KSI+T2ZmaWNlIFBob25lOiAg
DQoyMDYtMjAyLTI5MDc8L3NwYW4+PC9wPg0KPC9kaXY+PC9kaXY+DQo=
From owner-freebsd-questions@FreeBSD.ORG  Tue Oct 29 11:49:11 2013
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTP id 8A4B3ED5
 for <freebsd-questions@freebsd.org>; Tue, 29 Oct 2013 11:49:11 +0000 (UTC)
 (envelope-from guru@unixarea.de)
Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34])
 (using TLSv1 with cipher AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mx1.freebsd.org (Postfix) with ESMTPS id 48FE32F79
 for <freebsd-questions@freebsd.org>; Tue, 29 Oct 2013 11:49:11 +0000 (UTC)
Received: from [82.113.121.95] (helo=tiny-r255948)
 by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.69) (envelope-from <guru@unixarea.de>) id 1Vb7nC-000703-KW
 for freebsd-questions@freebsd.org; Tue, 29 Oct 2013 12:49:03 +0100
Received: from tiny-r255948 (localhost [127.0.0.1])
 by tiny-r255948 (8.14.7/8.14.3) with ESMTP id r9TBn05X001804
 for <freebsd-questions@freebsd.org>; Tue, 29 Oct 2013 12:49:00 +0100 (CET)
 (envelope-from guru@unixarea.de)
Received: (from guru@localhost)
 by tiny-r255948 (8.14.7/8.14.3/Submit) id r9TBmx7K001803
 for freebsd-questions@freebsd.org; Tue, 29 Oct 2013 12:48:59 +0100 (CET)
 (envelope-from guru@unixarea.de)
X-Authentication-Warning: tiny-r255948: guru set sender to guru@unixarea.de
 using -f
Date: Tue, 29 Oct 2013 12:48:59 +0100
From: Matthias Apitz <guru@unixarea.de>
To: FreeBSD <freebsd-questions@freebsd.org>
Subject: Re: Check to see if share is mounted
Message-ID: <20131029114859.GA1796@tiny-r255948>
References: <20131029074019.5a7a75b9@scorpio>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <20131029074019.5a7a75b9@scorpio>
X-Operating-System: FreeBSD 10.0-CURRENT r235646 (i386)
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Con-Id: 51246
X-Con-U: 0-guru
X-Originating-IP: 82.113.121.95
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: Matthias Apitz <guru@unixarea.de>
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 29 Oct 2013 11:49:11 -0000

El día Tuesday, October 29, 2013 a las 07:40:19AM -0400, Jerry escribió:

> I have several Bash scripts that backup data to a Windows drive. I am
> looking for a one or two line snippet of code that I can use to
> determine if the share is all ready mounted. I tried trapping the exit
> code of the "mount_smbfs" command, but it always returns "0". Is there
> another way to get info on the share?

test -f /mnt/..... || {
   echo PANIC
   exit
   }


-- 
Sent from my FreeBSD netbook

Matthias Apitz, <guru@unixarea.de>, http://www.unixarea.de/ f: +49-170-4527211
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?047d7b6dca5229ba5204e9dfb856>