Mail Archives: cygwin/2002/05/23/02:45:25
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)" <lhall AT rfk DOT com>
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/
- Raw text -