This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cron


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]