From owner-freebsd-questions@FreeBSD.ORG Tue Oct 29 11:43:04 2013 Return-Path: Delivered-To: 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 0BB46C66 for ; Tue, 29 Oct 2013 11:43:04 +0000 (UTC) (envelope-from abbeydixson8@gmail.com) Received: from mail-pd0-x24e.google.com (mail-pd0-x24e.google.com [IPv6:2607:f8b0:400e:c02::24e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DE1952F00 for ; Tue, 29 Oct 2013 11:43:03 +0000 (UTC) Received: by mail-pd0-f206.google.com with SMTP id v10so139507pde.5 for ; Tue, 29 Oct 2013 04:43:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:message-id:date:subject:from:to:content-type; bh=WBT7dxGBeT4kf4/+N7szZvoNv+0pSfP6iBTrEPV8GTw=; b=ku2Z4p8LJb/QrRnZTA8qytYbrYt/hWMmDFdJ2ZJ0uSDrMsYyMCdRqo3L/utA8FI6hf rPqy4ZDJrX8X4+kHLYix++pLB1w0ntvBodpmsBOT3qs49oqF9rq/QYy/dzx4s3iKUAXG QiM/giSTKnFa1hseq4074UdF9cdJWhUL/1qFW0IxPB4v77hjivORC1M4JsYQMpYgjNfe s1qV90e/0QUlcgiyAsqK84g6ousRg6lgBadw9/B8uxUUJcGOK+zYFiZpzAxMAESH9jlJ XHztj2Lix2IDG48MuQUAklM2nJwumz9p9P9ErUnZai54xdNSXS/KW+2GBqEKbEI6sDFQ 3sgw== MIME-Version: 1.0 X-Received: by 10.66.144.41 with SMTP id sj9mr12022200pab.23.1383046983561; Tue, 29 Oct 2013 04:43:03 -0700 (PDT) Message-ID: <047d7b6dca5229ba5204e9dfb856@google.com> Date: Tue, 29 Oct 2013 11:43:03 +0000 Subject: www.freebsd.org From: Abbey Dixson To: questions@freebsd.org Content-Type: text/plain; charset=windows-1252; format=flowed; delsp=yes Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Oct 2013 11:43:04 -0000 PGRpdiBkaXI9Imx0ciI+PGRpdiAgDQpzdHlsZT0iZm9udC1zaXplOjEzLjMzMzMzMzk2OTExNjIx MXB4O2ZvbnQtZmFtaWx5OmFyaWFsLHNhbnMtc2VyaWYiPjxwICANCmNsYXNzPSJNc29Ob3JtYWwi IHN0eWxlPSJtYXJnaW4tYm90dG9tOjEycHQiPkhpLDwvcD48L2Rpdj48ZGl2ICANCnN0eWxlPSJm b250LXNpemU6MTMuMzMzMzMzOTY5MTE2MjExcHg7Zm9udC1mYW1pbHk6YXJpYWwsc2Fucy1zZXJp ZiI+DQo8cCBjbGFzcz0iTXNvTm9ybWFsIj5JIGNhbWUgYWNyb3NzIHlvdXIgd2Vic2l0ZSBhbmQg d2FudGVkIHRvIHNlbmQgeW91IGEgIA0KcXVpY2sgbm90ZS4gV2l0aCBhIGZldyBzaW1wbGUgY2hh bmdlcyB0byBtYWtlIHlvdXIgc2l0ZSBtb3JlIFNFTy1mcmllbmRseSAgDQpJkm0gc3VyZSB5b3Ug Y2FuIGNvbnZlcnQgbW9yZSB2aXNpdG9ycyBpbnRvIGxlYWRzIGFuZCBnZXQgaXQgcGxhY2VkIGhp Z2hlciAgDQppbiB0aGUgb3JnYW5pYyBzZWFyY2ggcmVzdWx0cywgZm9yIGtleXdvcmRzIHRoYXQg bWF0dGVyIHRvIHlvdSB0aGUgbW9zdC48L3A+DQo8L2Rpdj48ZGl2ICANCnN0eWxlPSJmb250LXNp emU6MTMuMzMzMzMzOTY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9w PjxkaXYgIA0Kc3R5bGU9ImZvbnQtc2l6ZToxMy4zMzMzMzM5NjkxMTYyMTFweDtmb250LWZhbWls eTphcmlhbCxzYW5zLXNlcmlmIj48cCAgDQpjbGFzcz0iTXNvTm9ybWFsIj48c3BhbiAgDQpzdHls ZT0iZm9udC1zaXplOjcuNXB0O2NvbG9yOnJnYig2MSwxMzMsMTk4KSI+T2ZmaWNlIFBob25lOiAg DQoyMDYtMjAyLTI5MDc8L3NwYW4+PC9wPg0KPC9kaXY+PC9kaXY+DQo= From owner-freebsd-questions@FreeBSD.ORG Tue Oct 29 11:49:11 2013 Return-Path: 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 ; 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 ; 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 ) 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 ; 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 To: FreeBSD 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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, , 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