From owner-freebsd-questions@FreeBSD.ORG Tue Oct 29 11:40:25 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 D208EA8F for ; Tue, 29 Oct 2013 11:40:25 +0000 (UTC) (envelope-from jerry@seibercom.net) Received: from mail-qa0-x235.google.com (mail-qa0-x235.google.com [IPv6:2607:f8b0:400d:c00::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 837752EAC for ; Tue, 29 Oct 2013 11:40:25 +0000 (UTC) Received: by mail-qa0-f53.google.com with SMTP id k15so2812149qaq.5 for ; Tue, 29 Oct 2013 04:40:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seibercom.net; s=google; h=date:from:to:subject:message-id:reply-to:organization:face :mime-version:content-type:content-transfer-encoding; bh=XvWEXD02n/we/eBRDRA7HGomFQDO7k/H47o3oc8VyLU=; b=q8qN3kBihfJZ3rT4JvjE5jyD3LgcX8dWdulEu0IStoJKulF+McXBbDIMZOLOqyOkLC DJvtkFJVstJLETjiKB1DNZhjyeiwwCL5SqJIN1OAcQHzcVUI16BasdX31czhqIjScmBj 7ZAnLmhO7jY/PCTx5bq/E/SjngcwWrr0bCRwc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:reply-to :organization:face:mime-version:content-type :content-transfer-encoding; bh=XvWEXD02n/we/eBRDRA7HGomFQDO7k/H47o3oc8VyLU=; b=cShxea4RYuj92pQftBs5smkxJgR5Di8DWb78UNZ8I6o33ZhdzUA0/K5HXQ5HGFOxL9 o+B3Y2BdG3Ux1v3l3r/idJbuz8yk47QeABwBSVdo1AyvrBM+cda20JHld2nW38Cg3O9M 21ugqxJMXJ+8P9MabGnBXagnnbd9pXg8xA1Zlst4Fi0ZUJuQSL2meSzg8iBMwbcpFYFU kWhFq+RD9YUf2z5CHMKWghvMmEMuqHbXP4MKetLCAn8goDHFmkaXmpIT9A9OW7+oYP16 FL7p7yak2asB+YdjdEPEvL48fv3TyQHF0teoHYE7ZrUEfgIj5UWXMxjqkE+gqEUsZvcz JyQA== X-Gm-Message-State: ALoCoQmJEVuZ6qUSAol/F8motg5b8kbzrEXbkq1GqW2DpF9gHix9q2Iav8FpuhJWxxuDkNu/RZfU X-Received: by 10.224.29.208 with SMTP id r16mr36923999qac.25.1383046824699; Tue, 29 Oct 2013 04:40:24 -0700 (PDT) Received: from scorpio.seibercom.net (cpe-076-182-104-150.nc.res.rr.com. [76.182.104.150]) by mx.google.com with ESMTPSA id h9sm64228689qaq.9.2013.10.29.04.40.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Oct 2013 04:40:24 -0700 (PDT) Received: from scorpio (localhost [127.0.0.1]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jerry@seibercom.net) by scorpio.seibercom.net (Postfix) with ESMTPSA id 3d89pD2fxWz2CG4y for ; Tue, 29 Oct 2013 07:40:20 -0400 (EDT) Date: Tue, 29 Oct 2013 07:40:19 -0400 From: Jerry To: FreeBSD Subject: Check to see if share is mounted Message-ID: <20131029074019.5a7a75b9@scorpio> Organization: seibercom.net X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd8.3) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEUAAABYRlwJCw4FAgAIBwKprDkBAQFQLR0BAgCir7VRttp8AAACAUlEQVQ4jZWUTYvbMBCGTVl8V2hX6Gg5G5FbWQdBj0lEfE7BhN4cyzi5Wt1E5L70roWy6N92xok/skkP+5IYrMcz78xIduDWpNM3vFzuA/jX5EY1AI6KHFwW/CzFuQAwqUBbV12p+CzIh6Awq7sg33pn5D64SQXAexffeuQlA/L35RrkaB551OjGfP/cAO8mCNaDcgvfky5ijoD0pAXlCQCnljiAjsJD9Ax05Ko5sZxbnLQcmM+dZg5IjREfZrWIHK0JuwU68pAGwHvfRxBundRzTxxz3r9dNUikPsEihjz2Dc4kjp1hKsJGuot4EDxaxzMoC7XqhxhOSfZrTS6gSX1JVdjp+o1PvWfekXgw3WL0g70nDEwA0H0HQsEZc8sTmFMTkWUfYWC/vdR1zQy3xLQgLwzu90QnlnFLjeiGWBjwhb4Sa42IqOg2qqS4O1/zhKokFUb1Q8Rj4Eb69WVflXEehJ35DgChVTE5n50eaGyMLOfH8AOodoSM4PVYAQgQdBulOa+knklYks3vAuQ+uX492lTl+A+e8qBV2AKoXalVKFfyuUp0pUp1ARaUHh82lv9MN+Ig7CZtgE6FNYvjlywT2VP2dMgOG46gTIWcqdfvuwyXNz0oMJNd/N5lh1YNiJt19ADTUo3VuFSNeQwVqRSrGjSCp53fk2g+Mvfk/gfoPxHeUS8MH9vRAAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: FreeBSD List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Oct 2013 11:40:26 -0000 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? -- Jerry ♔ Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________