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]

Re: [ cron/crontab ] someone using cron on cygwin?


On Fri, May 04, 2001 at 02:38:47AM +0200, Gerrit P. Haase wrote:
> Dear Corinna,
> 
> $ crontab
> crontab: can't obtain passwd entry.

You don't have a /etc/passwd entry for your user account.
crontab tries to get your passwd entry by calling

	struct passwd *pw = getpwuid (geteuid ());

So check your user id (/bin/id) and add an entry for your
user id to /etc/passwd. Or, even better, call mkpasswd to
recreate /etc/passwd.

> I don't know how to use crontab.
> 
> Is it possible to create a crontabfile manually?
> How is the syntax?

As in U*X with extensions borrowed by Paul Vixies crontab version
used under Linux. But this will not help you since cron needs
your password which is asked for by crontab and remembered in a
encrypted password file only used by cron and crontab.

As soon as you have used crontab for the first time and your
password is remembered, you can change your crontab file
by yourself if you want. You will find it under /var/cron
as "crontab.<username>"

> There is a manfile: crontab.1 
> and one called: crontab.5
> 
> Which one is called if i type: man crontab?

crontab.1

> How to call the other one?

man 5 crontab

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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