1.5.21-1:Windows 2003 Server & Cygwin Cron
Larry Hall (Cygwin)
reply-to-list-only-lh@cygwin.com
Wed Oct 11 22:02:00 GMT 2006
On 10/11/2006, Mark Schubert wrote:
> cron_server@mcspd-a ~
> cron_server>crontab -l
> # DO NOT EDIT THIS FILE - edit the master and reinstall.
> # (/tmp/crontab.5292 installed on Wed Oct 11 18:05:28 2006)
> # (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp $)
> * * * * * rm ~/this
> * * * * * date > /home/cron_server/date.txt
>
> $ ls -la
> total 36
> drwxrwxrwx+ 4 cron_server None 0 Oct 11 18:05 .
> drwxrwxrwx+ 6 mark None 0 Oct 11 13:59 ..
> -rwxr-xr-x 1 cron_server None 1150 Aug 28 15:07 .bash_profile
> -rwxr-xr-x 1 cron_server None 3116 Aug 28 15:07 .bashrc
> -rwxr-xr-x 1 cron_server None 1461 Aug 28 15:07 .inputrc
> drwx------+ 2 cron_server None 0 Oct 11 18:04 .ssh
> drwxrwxrwx+ 3 cron_server None 0 Oct 11 15:31 WINDOWS
> -rw-r--r-- 1 cron_server None 23875 Oct 11 18:03 cygcheck.txt
> -rw-r--r-- 1 cron_server None 0 Oct 11 14:16 this
>
> (no date.txt and still see "this")
Try '/bin/rm' and '/bin/date'. Also, if you install ssmtp or exim,
cron could send you email if there were failures.
> Service : cron
> Current State : Running
> Controls Accepted : Stop
> Command : /usr/sbin/cron -D
> stdin path : /dev/null
> stdout path : /var/log/cron.log
> stderr path : /var/log/cron.log
> Process Type : Own Process
> Startup : Automatic
> Account : LocalSystem
>
This says that cron is running as LocalSystem, not cron_server.
Your sshd_server user should work for cron too if it works for sshd.
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (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/
More information about the Cygwin
mailing list