delorie.com/archives/browse.cgi | search |
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 |
From: | "Ralf Habacker" <Ralf DOT Habacker AT freenet DOT de> |
To: | "cygwin" <cygwin AT cygwin DOT com> |
Subject: | RE: Problem with cron and cygdrive-prefix |
Date: | Fri, 2 Aug 2002 18:23:08 +0200 |
Message-ID: | <008701c23a40$e36525d0$651c440a@BRAMSCHE> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
Importance: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
In-Reply-To: | <Pine.WNT.4.44.0208020727010.968-100000@barbecueworld> |
> > On Fri, 2 Aug 2002, Ralf Habacker wrote: > > > > > c: on /c type user (binmode,noumount) > > > ^^^^ > > > that's your problem. cron is running under SYSTEM > > > account and can't see user mount points. > > > > > > > I've unmounted the remounted, but got a warning. Does this mean, it will not > > work ? > > Have you tried it? Did it work? In your particular situation I suspect > that it will. > Yes it mounts /g in system mode and it works. > > Administrator AT DBSERVER1 ~ > > $ umount /g > > Actually the noumount means that you can't umount it, in this case because > cygdrive causes this mount point. > > > Administrator AT DBSERVER1 ~ > > $ mount -s -b g: /g > > mount: warning: system mount point of '/g' will always be masked by > user mount. > This is exactly what I've done and it works, but unfortunally the path settings for the cron job wasn't set and that seems caused by the user cygdrive prefix settings. > Actually, for me system cygdrive prefixes don't seem to work at all if > there is a user cygdrive prefix: > > Michael Hoffman AT BARBECUEWORLD / > $ ls / > bin/ cygwin.bat* etc/ lib/ opt/ tmp/ var/ > cygdrive/ cygwin.ico home/ moocow/ sbin/ usr/ > > Michael Hoffman AT BARBECUEWORLD / > $ mount --show-cygdrive-prefix > Prefix Type Flags > /cygdrive user binmode > /moocow system binmode > > Michael Hoffman AT BARBECUEWORLD / > $ builtin cd /cygdrive/c # for me cd is an alias to pushd so this restores > # the default behavior > > Michael Hoffman AT BARBECUEWORLD /cygdrive/c > $ builtin cd /moocow/c > bash: cd: /moocow/c: No such file or directory > > This seems to be indicated by the source > [path.cc:mount_info::read_cygdrive_info_from_registry()]. Cygdrive is > only read once. Deleting the user cygdrive prefix (umount -u > --remove-cygdrive-prefix) and starting a new rxvt session seems to do > the job. > > So Ralf, my suggestion to you would be to change your system prefix > and if it doesn't work to make a cron job to remove the user prefix > for the user cron runs as. > -- On monday I will inspect this more. Thanks for any hints. Ralf -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |