delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/01/13:09:59

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Tue, 1 Apr 2003 12:41:59 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "adam r. christopher" <adam AT du DOT edu>
cc: cygwin AT cygwin DOT com
Subject: Re: cron
In-Reply-To: <Pine.OSF.4.33.0304011030460.388225-100000@odin.cair.du.edu>
Message-ID: <Pine.GSO.4.44.0304011235540.21921-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

Adam,

Quoting from your cygcheck output:

	C:\Cygwin                                       /               system  textmode
	C:\Program Files\OpenSSH\NetworkSimplicity\ssh  /bin            system  binmode
	C:\Program Files\OpenSSH\NetworkSimplicity\etc  /etc            system  binmode
	C:\Program Files\OpenSSH\NetworkSimplicity\ssh  /ssh            system  binmode
	C:\Program Files\OpenSSH\NetworkSimplicity\ssh  /usr/bin        system  textmode
	C:\Cygwin/lib                                   /usr/lib        system  textmode
	C:\Program Files\OpenSSH\NetworkSimplicity\ssh  /usr/local/bin  system  binmode
	C:\Program Files\OpenSSH\NetworkSimplicity\ssh  /usr/local/etc  system  binmode
	C:\Program Files\OpenSSH\NetworkSimplicity\var  /var            system  binmode
	.                                               /cygdrive       user    textmode,cygdrive

This shows a few things:

1) you're missing a system-level cygdrive prefix (therefore, cron won't know about /cygdrive).
2) you're not really running the stuff installed by Cygwin, as your /bin is not mounted from a Cygwin directory.
3) furthermore, your /usr/bin is not the same as your /bin, which brings its own slew of problems.

If I were you, I'd uninstall NetworkSimplicity's OpenSSH (which would,
hopefully, restore the mounts to their original state), and re-run Cygwin
setup.  If that doesn't work, run the appropriate mount commands by hand.
Mine are:

mount -f -s -b "C:/cygwin/usr/X11R6/bin" "/usr/bin/X11"
mount -f -s -b "C:/cygwin/bin" "/usr/bin"
mount -f -s -b "C:/cygwin/lib" "/usr/lib"
mount -f -s -b "C:/cygwin" "/"
mount    -b --change-cygdrive-prefix "/cygdrive"
mount -s -b --change-cygdrive-prefix "/cygdrive"

HTH,
	Igor

On Tue, 1 Apr 2003, adam r. christopher wrote:

> As a postmaster myself, I should have recognized that my subject line was
> SPAMmish - sorry about that.
>
> Can you tell me more about why/how my mounts are screwed up, and how this
> relates to cron?
>
> -adam
>
> On Tue, 1 Apr 2003, Igor Pechtchanski wrote:
>
> > On Tue, 1 Apr 2003, adam r. christopher wrote:
> >
> > > Hey all,
> > >
> > > I am trying to get cron to work, but I'm not having too much luck. It's
> > > running as LocalSystem, the logs (both in /var/log/crond.log and the Event
> > > Logs) show no errors, only events such as LIST, and yet it doesn't seem to
> > > be working.
> > >
> > > In my example, I'm simply trying to touch a file called 'gold' in the
> > > specified directory, but it never shows up. The cript runs fine from the
> > > command line.
> > >
> > > $ crontab -l
> > > 1,5,10,15,20,25,30,35,40,45,50,55 * * * * /cygdrive/u/usr/Core/bin/test.sh
> > >
> > > $ cat /cygdrive/u/usr/Core/bin/test.sh
> > > /usr/bin/touch /cygdrive/u/usr/Core/bin/gold
> > >
> > > $ ls -l
> > > -rwxrwxrwx+   1 Administ 65535          44 Apr  1 09:29 test.sh
> > >
> > > $ ls -l /var/cron/tabs
> > > -rwxrwxrwx+   1 Administ SYSTEM        154 Apr  1 09:42 Administrator
> > >
> > > cygcheck is attached.
> > >
> > > Any help, guys?
> > >
> > > Thanks!
> > > -adam
> > > University of Denver
> >
> > Adam,
> >
> > You do know that you've installed NetworkSimplicity's OpenSSH and that
> > it's screwed up your mounts, right?
> >       Igor
> > P.S. That subject was *very* suggestive of a SPAM message, BTW...

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


--
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