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: <20020523064326.22232.qmail@web13104.mail.yahoo.com> Date: Thu, 23 May 2002 07:43:26 +0100 (BST) From: =?iso-8859-1?q?Bella?= Subject: Run cron - echo $HOME does not give home directory - still not work To: cygwin AT cygwin DOT com In-Reply-To: <4.3.1.2.20020522103530.0261a0b0@pop.ma.ultranet.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, Actually, use can logon and run cron smoothly. I think the /etc/passwd is not problem. However, user still cannot get his home directory when "echo $HOME" in running cron, the cron output file give /cygdrive/c. I read the README in /usr/doc/cron. I set /etc/passwd and /var (& its directory) to 777 mode. I think the cron has not read /etc/passwd, is it ? Any suggestion ? bella --- "Larry Hall (RFK Partners, Inc)" wrote: > 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 > __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- 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/