delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/29/12:13:46

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
In-Reply-To: <NUTMEGmd6wUZLEZF98v00000336@NUTMEG.CAM.ARTIMI.COM>
References: <NUTMEGmd6wUZLEZF98v00000336 AT NUTMEG DOT CAM DOT ARTIMI DOT COM>
Mime-Version: 1.0 (Apple Message framework v619)
Message-Id: <68CDB3B9-29C5-11D9-A584-000A957A7EA8@apple.com>
Cc: cygwin AT cygwin DOT com
From: Robert Pollard <rpollard AT apple DOT com>
Subject: Re: cron won't execute tasks
Date: Fri, 29 Oct 2004 09:13:02 -0700
To: Dave Korn <dk AT artimi DOT com>
X-IsSubscribed: yes

On Oct 29, 2004, at 5:27 AM, Dave Korn wrote:

>> -----Original Message-----
>> From: cygwin-owner On Behalf Of Igor Pechtchanski
>> Sent: 29 October 2004 01:47
>
>> On Thu, 28 Oct 2004, Robert Pollard wrote:
>
>>> Cron will not execute every minute now.  I have a scheduled
>> task that does
>>> something like "* * * * * /bin/echo "Test" >/dev/null
>> 1>/TestAct.log"  It
>>> doesn't execute at all.
>>
>> Exactly how do you know that it doesn't execute?  I hope not
>> by the lack
>> of output in /TestAct.log, because the above command will
>> *never* write
>> anything to /TestAct.log...  It should change the mod time on
>> it, though.
>> :-)
>
>   Heh, that was my first thought when I saw "echo >/dev/null", but
> redirections are applied in the order they appear on the command line, 
> and
> so stdout gets redirected first to /dev/null, then the 1> redirects it 
> again
> to the file.  Try it, it really works:

Thank you!  ;-)  I understand the first redirection to be what to do 
with the email output.  I don't want it to send an email.

>
> dk AT mace ~/test> ls -lart
> total 0
> drwxrwxrwx+  13 dk       Domain U        0 Oct 29 10:43 ..
> drwxr-xr-x+   2 dk       Domain U        0 Oct 29 10:43 .
> dk AT mace ~/test> /bin/echo "Test" >/dev/null 1>TestAct.log
> dk AT mace ~/test> ls -lart
> total 1
> drwxrwxrwx+  13 dk       Domain U        0 Oct 29 10:43 ..
> -rw-r--r--    1 dk       Domain U        5 Oct 29 10:43 TestAct.log
> drwxr-xr-x+   2 dk       Domain U        0 Oct 29 10:43 .
> dk AT mace ~/test> cat TestAct.log
> Test
> dk AT mace ~/test>
>
>>> Although, it wouldn't execute the scripts because it couldn't switch
>>> user context.
>>
>> mkpasswd -d -u DomainUserName >> /etc/passwd
>>
>> You may also need to do something for groups, e.g.,
>>
>> mkgroup -d >> /etc/group
>
>
>   You forgot to mention cron-diagnose.sh!  I think 1.7 is the most 
> recent.

Okay, I'll try this.  I did take a look at it but didn't seem to be 
something that would be able to tell me why cron doesn't execute at 
all.

Thanks!

>
> http://sources.redhat.com/ml/cygwin/2004-07/msg00207.html
>
>     cheers,
>       DaveK
> -- 
> Can't think of a witty .sigline today....
>
>
> --
> 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/
>


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

- Raw text -


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