delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/27/10:57:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
content-class: urn:content-classes:message
MIME-Version: 1.0
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
Subject: RE: Checking mount points
Date: Fri, 27 Sep 2002 09:56:53 -0500
Message-ID: <FBAA835302BB614E9D5B54EBEA335DCB6F9A37@uemail02.evansville.edu>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Richardson, Tony" <ar63 AT evansville DOT edu>
To: <cygwin AT cygwin DOT com>
Cc: "Robert Collins" <rbcollins AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g8REvDt17683


> From: Robert Collins [mailto:rbcollins AT cygwin DOT com] 
> On Sat, 2002-09-28 at 00:07, Richardson, Tony wrote:
> > What is the easiest way to check if /home/$USER (or some other
> > directory) has been mounted (either system-wide or 
> user-only)? I know 
> > that I can use regtool (checking both the system and user keys) or 
> > parse the output from "mount",  but I was hoping for something as 
> > simple as typing "isitmounted /home/$USER" and have the unknown 
> > isitmounted command return an appropriate exit status.
> > 
> > I'm trying to write startup scripts so that mount points get set 
> > automatically when running cygwin from a network share (but 
> I don't to 
> > override /home/$USER if that already exists.)
> >
> 'mount' should do it.

Any suggestions on how to do it?

"mount /home/$USER" returns "not enough arguments" and I haven't found a
-check option to mount.

Tony

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019