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 Message-ID: <3EB959D0.391C1DCC@swipnet.se> Date: Wed, 07 May 2003 21:09:04 +0200 From: a12 X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: cron does not execute script References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi again, 'ls -l /home/sysaccount' yields: drwxr-xr-x+ 4 admins users 4096 May 7 19:46 sysaccount I have modified /var/cron/tabs/sysaccount to contain: SHELL=/bin/sh PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin # mail any output to 'sysaccount', no matter whose crontab this is #MAILTO=sysaccount #* * * * * /usr/bin/date >> /home/sysaccount/date.log 2>&1 * * * * * /usr/bin/date >> /tmp/date.log 2>&1 * * * * * /home/sysaccount/mpu.sh >> /tmp/mpu.log 2>&1 /tmp/date.log is updated every minute as expected. Still no /tmp/mpu.log Removing MAILTO did not change anything. ssmtp is installed. Windows event log shows only: /usr/sbin/cron : PID 484 : (sysaccount) CMD (/usr/bin/date >> /tmp/date.log 2>&1) Any more hints ? Marek Igor Pechtchanski wrote: > Could also be a permission issue. What are the permissions on the > /home/sysaccount directory? Also, try redirecting the output to a file in > some other directory (say, /tmp) and see if that works. > > You may also need to have ssmtp installed if you set MAILTO (not sure on > that bit). Try commenting out the MAILTO setting... > > Does the Windows event log have any cron messages? > Igor > > On Wed, 7 May 2003, a12 wrote: > > > Hi Igor, > > > > 'mount' yields: > > C:\cygwin\bin on /usr/bin type system (binmode) > > C:\cygwin\lib on /usr/lib type system (binmode) > > C:\cygwin on / type system (binmode) > > c: on /cygdrive/c type user (binmode,noumount) > > d: on /cygdrive/d type user (binmode,noumount) > > g: on /cygdrive/g type user (binmode,noumount) > > i: on /cygdrive/i type user (binmode,noumount) > > j: on /cygdrive/j type user (binmode,noumount) > > k: on /cygdrive/k type user (binmode,noumount) > > > > /etc/passwd contains: > > SYSTEM:*:18:544:,S-1-5-18:: > > admins:*:544:544:,S-1-5-32-544:: > > sysaccount:*:1011:513:sysaccount,U-RRBACK\sysaccount,S-1-5-21-1681026574-976757939-617630493-1011:/home/sysaccount:/bin/bash > > > > /etc/group contains: > > SYSTEM:S-1-5-18:18: > > none:S-1-5-21-1681026574-976757939-617630493-513:513: > > admins:S-1-5-32-544:544: > > backup:S-1-5-32-551:551: > > guests:S-1-5-32-546:546: > > power:S-1-5-32-547:547: > > replica:S-1-5-32-552:552: > > users:S-1-5-32-545:545: > > > > As the user 'sysaccount' belongs to Windows Administrators > > group, may be I should change its group number to 544 ? > > > > Marek > > > > Igor Pechtchanski wrote: > > > > > On Wed, 7 May 2003, a12 wrote: > > > > > > > Hi gurus, > > > > > > > > As I cannot make cron to execute my crontab, I have checked > > > > some earlier posts. I have verified ownership: > > > > /var contains: > > > > drwxrwxrwt+ 3 SYSTEM SYSTEM 0 Mar 13 10:32 cron > > > > /var/cron contains: > > > > drwxrwxrwt+ 2 SYSTEM SYSTEM 0 May 7 11:29 tabs > > > > /var/cron/tabs contains: > > > > -rwxr--r--+ 1 sysaccou none 290 May 7 11:29 sysaccount > > > > > > > > 'crontab -l' yields: > > > > SHELL=/bin/sh > > > > PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin > > > > # mail any output to 'sysaccount', no matter whose crontab this is > > > > MAILTO=sysaccount > > > > * * * * * /usr/bin/date >> /home/sysaccount/date.log 2>&1 > > > > * * * * * /home/sysaccount/mpu.sh >> /home/sysaccount/mpu.log 2>&1 > > > > > > > > /home/sysaccount contains: > > > > -rwxrwxrwx 1 sysaccou none 171 May 7 15:25 mpu.sh > > > > > > > > mpu.sh contains: > > > > #!/bin/sh > > > > /usr/bin/date >> /home/sysaccount/mpu.log > > > > > > > > date.log is updated once a minute as expected: > > > > Wed May 7 15:24:00 WEDT 2003 > > > > Wed May 7 15:25:00 WEDT 2003 > > > > Wed May 7 15:26:00 WEDT 2003 > > > > > > > > There is no mpu.log . Why ? > > > > > > > > What have I missed ? > > > > Marek > > > > > > Possibly mounts for the SYSTEM account... What's the output of "mount"? > > > Igor -- 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/