X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Kevin M Subject: Re: CRON can't cd to HOME Date: Thu, 03 Jul 2008 13:31:20 -0400 Lines: 80 Message-ID: References: <18214359 DOT post AT talk DOT nabble DOT com> <00e201c8db7f$09ff3970$2e00a8c0 AT wirelessworld DOT airvananet DOT com> <18218651 DOT post AT talk DOT nabble DOT com> Reply-To: kmarkle AT pbs DOT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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" >> To: >> 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/