This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Run cron - echo $HOME does not give home directory


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@rfk.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]