www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/01/11:24:48

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <18218651.post@talk.nabble.com>
Date: Tue, 1 Jul 2008 08:24:05 -0700 (PDT)
From: radski <radomil AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: CRON can't cd to HOME
In-Reply-To: <00e201c8db7f$09ff3970$2e00a8c0@wirelessworld.airvananet.com>
MIME-Version: 1.0
X-Nabble-From: radomil AT hotmail DOT com
References: <18214359 DOT post AT talk DOT nabble DOT com> <00e201c8db7f$09ff3970$2e00a8c0 AT wirelessworld DOT airvananet DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Pierre,

fantastic help, can't thank you enough - I didn't realize you could
explicitly set HOME in the crontab - adding 

set HOME=/home/xuser

worked a treat.

For future reference the error is below, hope it helps someone when they
google this.

The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help and
Support for details. The following information is part of the event:
/usr/sbin/cron: PID 966380: (CRON) error (can't cd to HOME).


Pierre A. Humblet wrote:
> 
> HOME can be specified in the crontab, else it is taken from /etc/passwd
> 
> You may have access issues if HOME is on a network drive.
> If so, consider creating a different HOME on a local disk, or running cron
> as yourself.
> 
> Pierre
> 
> ----- Original Message ----- 
> From: "radski" <radomil AT hotmail DOT com>
> To: <cygwin AT cygwin DOT com>
> Sent: Tuesday, July 01, 2008 8:58 AM
> Subject: CRON can't cd to HOME
> 
> 
> |
> | Hello,
> | I'm trying to CRON, but I'm receiving error in the windows log saying it
> | "can't cd to HOME"; yet cron_diagnose.sh completes without any errors.
> There
> | doesn't seem to be much reference to this error out there, I've tried
> moving
> | home from outside of the cygwin directory to inside and changed
> permissions
> | but that does not seem to help.
> |
> | Cron service runs as Local System and I'm not sure where it takes the
> home
> | setting from ? changeing it in passwd file doesn't seem to make any
> | difference.
> | -- 
> | View this message in context: 
> http://www.nabble.com/CRON-can%27t-cd-to-HOME-tp18214359p18214359.html
> | Sent from the Cygwin list mailing list archive at Nabble.com.
> |
> |
> | --
> | 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/
> | 
> 
> 
> --
> 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/
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/CRON-can%27t-cd-to-HOME-tp18214359p18218651.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019