Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-Id: <4.3.1.2.20020522103530.0261a0b0@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com Date: Wed, 22 May 2002 10:38:12 -0400 To: B , cygwin AT cygwin DOT com From: "Larry Hall (RFK Partners, Inc)" Subject: Re: Run cron - echo $HOME does not give home directory In-Reply-To: <20020522133908.75145.qmail@web13101.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 09:39 AM 5/22/2002, B wrote: >Hi, > >I used Cygwin 1.3.10 in w2k server. When a user run >cron, the home >directory is /cygdrive/f/home/user e.g, > >16 * * * * echo $HOME > /cygdrive/f/home/user/testfile > >in testfile, the output: > >/cygdrive/c > >In another w2k server, i also install Cygwin 1.3.10, >user also run the >above cron, also with home directory /cygdrive/f > >the testfile give, > >/cygdrive/f/home/user > >I used the same setting in Cygwin for the above two >servers. Any idea ? From /usr/doc/cron/FEATURES: -- Environment variables can be set in each crontab. SHELL, USER, LOGNAME, and HOME are set from the user's passwd entry; all except USER can be changed in the crontab. So you should start by making sure your /etc/passwd and /etc/group files are properly set. You should also review all the cron documentation in /usr/doc/cron and /usr/doc/Cygwin/cron.README. Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/