Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: Thorsten Kampe Subject: Re: Crontab does not work, Windows 2000 Date: Sat, 22 Nov 2003 13:55:30 +0100 Lines: 184 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org User-Agent: 40tude_Dialog/2.0.6.1de * Tim Ashman (2003-11-21 23:39 +0100) > Igor, > I have looked through /usr/share/doc/Cygwin/cron.README like you suggested. > The only problem is that the cygrunsrv file does not exist on my computer. > I've done a thorough search. Do you have any idea why this happened? Is it > common and what should I do about it? > Thanks. > ----Original Message Follows---- > From: Igor Pechtchanski > Reply-To: cygwin AT cygwin DOT com > To: Tim Ashman > CC: cygwin AT cygwin DOT com > Subject: Re: Crontab does not work, Windows 2000 > Date: Fri, 21 Nov 2003 12:59:54 -0500 (EST) > On Thu, 20 Nov 2003, Tim Ashman wrote: > > Igor, > > > > I did not run the cygrunsrv utility. I searched my hard drive and it does > > not exist. I just created a crontab under my username from the "crontab > -e" > > command. Is cygrunsrv a trivial part of running cron tasks? > Your cron service is not running. See /usr/share/doc/Cygwin/cron.README. > > Also, I ran cron_diagnose and it is getting stuck on the mounts. I'm > pretty > > sure that the mounts are system mounts, not user. > > > > ->Part of my output after running the diagnose script: > > > > The SYSTEM user cannot access the mount point /usr/bin. > > Please run the following command to add a system mount point: > > mount -f -s -b "[DOS path to Cygwin]/bin" "/usr/bin" > > where [DOS path to Cygwin] is something like c:/cygwin. > > > > For more information, run 'mount -m' and 'mount -h' > > > > After adding this mount point, please re-run this script. > > > > ->My output after running mount -m: > > > > 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 -s -b --change-cygdrive-prefix "/cygdrive" > > > > Should I run the command you suggested at: > > http://sources.redhat.com/ml/cygwin/2003-05/msg00486.html ? > No, I think you have a different problem. Looks like your SYSTEM user may > have user mounts that shadow the system ones. Try getting a SYSTEM-owned > shell and running "mount -m" from there. If you see any user mounts, > "umount -u" them. > Igor > > Hopefully we get this sorted out after this posting! :) Thanks > > > > ----Original Message Follows---- > > From: Igor Pechtchanski > > Reply-To: cygwin AT cygwin DOT com > > To: Tim Ashman > > CC: cygwin AT cygwin DOT com > > Subject: Re: Crontab does not work, Windows 2000 > > Date: Thu, 20 Nov 2003 17:59:55 -0500 (EST) > > > > Tim, > > > > Umm, sorry, I meant just the underlined lines, but I guess no dice... > > > > Did you try running Mark Harig's cron_diagnose.sh (Google for it) on your > > system? Does it report any errors? > > > > Does the "date" example produce any messages in syslog (i.e., Windows > > Event log)? An obligatory silly question, BTW: did you start the cron > > service? What options did you pass to cygrunsrv to create the service? > > Igor > > > > On Thu, 20 Nov 2003, Tim Ashman wrote: > > > > > Igor, > > > > > > The output I displayed in my last posting was from the event log. It > > > is not what my script is supposed to output. My script uses the lynx > > > utility to download specific data files from an http site and echoes > > > some progress statements back to the shell. I have tried what you > > > suggested below and the "hello world" date crontab as well. Both do > > > not work. I have also tried different combinations of path (/bin and > > > /usr/bin) in my crontab, but still no luck. Note, I open a bash shell > > > from /bin/bash and write my crontab from there. Just a quick > > > sidetrack...why does the "pwd" command give /usr/bin when the shell > > > was opened in /bin? > > > > > > Any other ideas of what the problem could be? Do you think it's > > > path-related? Thank you so much... > > > > > > ---------------------- > > > > > > Tim, > > > > > > Replies inline below. > > > > > > On Thu, 20 Nov 2003, Tim Ashman wrote: > > > > > > > Igor > > > > > > > > I have attached the windows event log. Can you help? Thanks. > > > > > > > > Event Type: Information > > > > Event Source: ./crontab > > > > Event Category: None > > > > Event ID: 0 > > > > Date: 11/18/2003 > > > > Time: 10:37:29 AM > > > > User: ECPACIFIC\ashmant > > > > Computer: TAYLORBILL > > > > Description: > > > > The description for Event ID ( 0 ) in Source ( ./crontab ) cannot be > > > > found. > > > > The local computer may not have the necessary registry information or > > > > message DLL files to display messages from a remote computer. The > > > > following > > > > information is part of the event: ./crontab : PID 596 : > > > > (ashmant) LIST (ashmant). > > > ^^^^^^^^^^^^^^^^^^^^^^^^ > > > Isn't this what your script is supposed to output? Looks to me like > > > your crontab actually worked. If you don't redirect the output of > > > your script, it goes to syslog (which, in case of Cygwin, is the > > > Windows event log). Try changing your crontab entry to something like > > > > > > 33 12 * * * /usr/bin/bsh_ubcfxscript.txt >> /tmp/bsh_ubcfxscript.out > > > > > > and see if it works. In fact, did you try the "Hello, world!" of all > > > crontabs, i.e. > > > > > > 33 12 * * * /bin/date >> /tmp/date.out > > > > > > ? HTH, > > > Igor > > > > > > > ----Original Message Follows---- > > > > From: Igor Pechtchanski > > > > Reply-To: cygwin AT cygwin DOT com > > > > To: Tim Ashman > > > > CC: cygwin AT cygwin DOT com > > > > Subject: Re: Crontab does not work, Windows 2000 > > > > Date: Thu, 20 Nov 2003 13:00:32 -0500 (EST) > > > > > > > > On Thu, 20 Nov 2003, Tim Ashman wrote: > > > > > > > > >Crontab will not run on my Cygwin platform. > > > > > > > > > >I am using Cygwin 1.5.5 under Windows 2000 5.00.2195 Service Pack 4. > > > > > > > > > >I want to schedule some bash scripts using crontab. Each script > > > > >runs perfectly fine on its own. I created the following crontab > > > > >from the bash shell, located at /bin/bash: > > > > > > > > > > # DO NOT EDIT THIS FILE - edit the master and reinstall. > > > > > # (/tmp/crontab.1904 installed on Wed Nov 19 12:32:06 2003) > > > > > # (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 15:13:41 > corinna Exp $) > > > > > > > > > > 33 12 * * * /usr/bin/bsh_ubcfxscript.txt > > > > > > > > > >When the time scheduled arrives, nothing happens. No error messages > > > > >occur and the script does not execute. > > > > > > > > > >cygcheck.out is attached > > > > > > > > > >Thank you. > > > > > > > > Did you check the Windows Event log? > > > > Igor Just install it. -- Content-Type: text/explicit; charset=ISO-8859-666 (Parental Advisory) Content-Transfer-Warning: message contains innuendos not suited for children under the age of 18 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/