delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/22/14:25:07

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <lau_bella AT yahoo DOT com>, cygwin AT cygwin DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
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

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019