Re: crontab

2005-08-26 Thread Jean-Michel Douchain

"Ah, that may explain it.  Is G: a network drive?"

That's right. It's a Dos network drive, and in fact, the response of "ls" is
very long.
I installed cygwin for all users.
So I don't know how to manage because my script works
by hand!! What are the differents between the cron and the handy execution??
Perhaps including a loop to wait for the answer, will solve my bug??

"You should also look in the Windows Event Log"
it looks good, cron started...




--
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/



Re: crontab

2005-08-26 Thread Jean-Michel Douchain



>
> > >
> > > 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.

my crontab:
26 * * * * /bin/csh -xv /cygdrive/c/sismalp/acqdata/es.csh >> /tmp/crontst2 2>&1
the file /tmp/crontst2 remains empty.

my script es.csh:
#!/bin/csh -f
cd /cygdrive/c/sismalp/acqdata/DATA
set acq = /cygdrive/g
set list = `/bin/ls $acq`
echo $list >> toto
exit

my file toto increase of one empty line at each execution, instead of a simple
directory list.

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

vi /var/log/cron.d:
[1564] cron started.

I can't see any error logs.

Jean-Michel


--
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/



Re: crontab

2005-08-25 Thread Jean-Michel Douchain
Hello,
thanks for your response. I've tried your command line but with no success.
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.
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!!

If you have more ideas, it will help me.

Jean-Michel

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.
> HTH,
> Igor
> --
> http://cs.nyu.edu/~pechtcha/
>   |\  _,,,---,,_[EMAIL PROTECTED]
> ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
>  |,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


--
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/