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 does not execute script


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
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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
Problem reports:       http://cygwin.com/problems.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]