X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Kevin M <kmarkle@pbs.org>
Subject:  Re: CRON can't cd to HOME
Date:  Thu, 03 Jul 2008 13:31:20 -0400
Lines: 80
Message-ID:  <mn.1b2b7d87e5204df9.85603@pbs.org>
References:  <18214359.post@talk.nabble.com> <00e201c8db7f$09ff3970$2e00a8c0@wirelessworld.airvananet.com> <18218651.post@talk.nabble.com>
Reply-To: kmarkle@pbs.org
Mime-Version:  1.0
Content-Type:  text/plain; charset="iso-8859-15"; format=flowed
Content-Transfer-Encoding:  8bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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

radski has brought this to us :
> 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/
>> 
>> 
>> 

Hello,
Hopefully I'm supposed to post at the bottom of the page. I tried 
adding set HOME=/home/username and recieved a bad minute error? Is 
there some trick to this..

Thanks!




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

