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 Reply-To: Cygwin List Message-Id: <6.1.0.6.0.20040928195921.03f6a7a8@pop.prospeed.net> X-Sender: Date: Tue, 28 Sep 2004 20:06:56 -0400 To: Rekha Belur , cygwin AT cygwin DOT com From: Larry Hall Subject: Re: crontab/mount problem In-Reply-To: <20040928224426.26581.qmail@web21205.mail.yahoo.com> References: <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20040927225802 DOT 03f46470 AT pop DOT prospeed DOT net> <20040928224426 DOT 26581 DOT qmail AT web21205 DOT mail DOT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 06:44 PM 9/28/2004, you wrote: >> >> >Here's the exact problem >> >$ crontab -l (my crontab) >> ># DO NOT EDIT THIS FILE - edit the master and >> >reinstall. >> ># (/tmp/crontab.1572 installed on Mon Sep 27 >> 17:10:53 >> >2004) >> ># (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 >> >15:13:41 corinna Exp $) >> >HOME = "/cygdrive/c/Program Files/Sonic" >> >BASE="/cygdrive/k/rekha/runSonic" >> >* * * * * /usr/bin/touch "$BASE/foo.txt" >> >1>${HOME}/sonicOutput/cron.out 2>${HOME >> >}/sonicOutput/cron.err >> > >> >Here's the output of cron.err >> >$ cat cron.err >> >/usr/bin/touch: creating >> >`/cygdrive/k/rekha/runSonic/foo.txt': No such file >> or >> >directory >> > >> >NOTE: I can see the contents of cygdrive/k from the >> >shell. I only have problems while using the cron. >> So >> >if I excute this command like follows it works >> >rbelur AT rekha /tmp >> >$ touch /cygdrive/k/rekha/foo.txt >> > >> >$ ls -ltr /cygdrive/k/rekha >> >total 92 >> >-rwxr-xr-x 1 rbelur mkgroup- 12302 Sep 27 >> >17:07 cron_diagnose.sh >> >-rw-r--r-- 1 rbelur mkgroup- 0 Sep 27 >> >17:34 foo.txt >> >> >> Read this: >> >> > >> >> If you've installed cron as directed, you won't have >> access to non-publicly >> accessible shares. Your options are to make the >> shares accessible to all >> without authentication or run 'cron' as a service >> under the same user as >> owns the crontab. The former opens up your share's >> permissions >> significantly. The latter makes 'cron' usable by >> only you. >> > >Thanks for the response and sorry to bug you folks but >I have tried reading the email archives and trying >some different things to no avail. > >I changed my permissions, so now > >$ ls -ltr /cygdrive >total 0 >drwxr-xr-x 1 rbelur Domain U 0 Dec 31 >1969 y >drwxr-xr-x 1 rbelur Domain U 0 Aug 11 >12:35 x >drwxr-xr-x 1 rbelur Domain U 0 Sep 14 >17:11 w >drwxr-xr-x 1 rbelur Domain U 0 Sep 22 >12:10 k >drwxrwxr-x+ 18 Administ root 0 Sep 28 >15:01 c > > >I have only one option which is to run the cron user >as "rbelur" to try to get cron to read my network >drive. To that end I did the following >$ cygrunsrv --stop cron >$ cygrunsrv --remove cron >$ cygrunsrv --install cron -p /usr/sbin/cron -a -D -u >"rbelur" -w "mypassword" > >$ cygrunsrv --start cron >cygrunsrv: Error starting a service: StartService: >Win32 error 1069: >The service did not start due to a logon failure. > >Am I still missing something basic ? Sorry to bother >but any help would be appreciated Try: Assuming 'cron_diagnose.sh' reports something, you should review it and make any appropriate changes. Keep in mind that most people use this when setting up 'cron' to run as a service under 'SYSTEM', so YMMV. It's probably a permissions problem. You can check the logs in the Windows event viewer and '/var/log/cron.log' as well for hints. Permissions/ ownership of '/var/cron' may need to be changed. Don't forget to read '/usr/share/doc/Cygwin/cron.README' too. That should give you a few things to look at/try. ;-) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- 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/