delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/04/04:28:50

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 4 May 2001 10:19:50 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [ cron/crontab ] someone using cron on cygwin?
Message-ID: <20010504101950.U24200@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <3AF21637 DOT 21160 DOT 1304FF5F AT localhost>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <3AF21637.21160.1304FF5F@localhost>; from gerrit.haase@t-online.de on Fri, May 04, 2001 at 02:38:47AM +0200

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 AT cygwin DOT com
Red Hat, Inc.

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

- Raw text -


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