X-Recipient: archive-cygwin@delorie.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@hotmail.com>
To: cygwin@cygwin.com
Subject: Re: CRON can't cd to HOME
In-Reply-To: <00e201c8db7f$09ff3970$2e00a8c0@wirelessworld.airvananet.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nabble-From: radomil@hotmail.com
References: <18214359.post@talk.nabble.com> <00e201c8db7f$09ff3970$2e00a8c0@wirelessworld.airvananet.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@hotmail.com>
> To: <cygwin@cygwin.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/

