delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/25/11:48: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://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Date: Thu, 25 Aug 2005 11:47:17 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Jean-Michel Douchain <sisauv AT opgc DOT univ-bpclermont DOT fr>
cc: cygwin AT cygwin DOT com
Subject: Re: crontab
In-Reply-To: <430DE5CC.9A9A3629@opgc.univ-bpclermont.fr>
Message-ID: <Pine.GSO.4.63.0508251144150.28254@slinky.cs.nyu.edu>
References: <430B3DCD DOT 857CD22E AT opgc DOT univ-bpclermont DOT fr> <Pine DOT GSO DOT 4 DOT 63 DOT 0508231423170 DOT 27271 AT slinky DOT cs DOT nyu DOT edu> <430DE5CC DOT 9A9A3629 AT opgc DOT univ-bpclermont DOT fr>
MIME-Version: 1.0

---559023410-851401618-1124984837=:28254
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: 8BIT

Ugh, top-posting.  Reformatted...

On Thu, 25 Aug 2005, Jean-Michel Douchain wrote:

> Igor Pechtchanski a écrit :
>
> > On Tue, 23 Aug 2005, Jean-Michel Douchain wrote:
> >
> > > I can't run automatically any program with cron??
> > > Can you help me??
> > >
> > > ------ crontab ------
> > > # DO NOT EDIT THIS FILE - edit the master and reinstall.
> > > # (/tmp/crontab.2272 installed on Tue Aug 23 17:00:18 2005)
> > > # (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp $)
> > > 45 * * * * /cygdrive/c/sismalp/acqdata/sis
> > > 01 * * * * /cygdrive/c/sismalp/acqdata/es.csh
> >
> > Since you didn't redirect the output of either of the above commands,
> > cron will probably try (and fail) to find a working smtp service on
> > your machine to mail you the output.
> >
> > Why not try with the "hello world" of crontabs instead:
> >
> > ?:5 * * * * /bin/date >> /tmp/cron-date.out 2>&1
> >
> > and see if that works as expected (printing the date into
> > /tmp/cron-date.out every five minutes).
> >
> > Also, as René suggested, check the error logs.
>
> Hello,
> thanks for your response. I've tried your command line but with no
> success.

Huh?  You just said it works for you...

> When i simply do this:
>
> * * * * * /usr/bin/date >> /tmp/crontst
>
> the file crontst is created and i see each time the prog was executed in
> different line.

Yes, that's what it's supposed to do.  However, you didn't redirect
stderr, so any time your program tries to write something to stderr, cron
will try to mail you the output (and fail).

> But it's the only thing i can do!! When i run another simple program. It
> works well only when i execute it by hand, and it does nothing with
> cron!!

Did you check the error logs (as mentioned twice in this thread already)?

> If you have more ideas, it will help me.

Redirect *all* output from your program to a file.  Check that file to see
if the program ran.  You may want to redirect stdin from /dev/null, too,
in case the program is waiting for input somewhere.  And *check the error
logs*, that's what they're there for.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

---559023410-851401618-1124984837=:28254
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
---559023410-851401618-1124984837=:28254--

- Raw text -


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