delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/18/11:27:41

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
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Subject: Re: Cron problem/Documentation and Setup
Date: Wed, 18 Aug 2004 08:27:28 -0700
Lines: 79
Message-ID: <cfvsgu$vfk$1@sea.gmane.org>
References: <cfubt6$p1m$1 AT sea DOT gmane DOT org> <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20040817222639 DOT 029cb138 AT pop DOT prospeed DOT net>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: h-67-102-25-114.lsanca54.covad.net
User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707)
In-Reply-To: <6.1.0.6.0.20040817222639.029cb138@pop.prospeed.net>
X-IsSubscribed: yes

Larry Hall wrote:

> At 09:39 PM 8/17/2004, you wrote:
>
>> I'm having a problem with cron in this new environment. I cannot 
>> execute any of my own scripts in my ~/bin. I was also having problems 
>> executing even things in /tmp! So like a good little boy I decided to 
>> read the readme for cron again before asking here. Trouble is I have 
>> no cron readme!
>>
>> I remember it was in /usr/doc/Cygwin but alas:
>
> Cygwin docs should now be in /usr/share/doc/Cygwin. All packages are 
> moving that direction.

Ah yes. I knew there was another place to look but all I could remember 
was /usr/doc. I'll have a look see when I get into work.

>> $ ls /usr/doc/cygwin
>> ctags-5.5.README* openssl-0.9.7d.README* whois-4.6.14-1.README*
>> ghostscript-7.05.README* procps-010801.README*
>> mc-4.6.0.README* rxvt-2.7.10.README*
>>
>> So I figured "Oops, guess I didn't install all the documentation" and 
>> fired up setup.exe to download from the internet. I use 
>> ftp://planetmirror.com and when I attempt to do that I get:
>>
>> (null) line 1537: parse error, unexpected COMMA, expecting STRING
>> (null) line 1537: unrecognized line 1537 (do you have the latest setup?)
>> (null) line 1537: unrecognized line 1537 (do you have the latest setup?)
>> (null) line 1537: unrecognized line 1537 (do you have the latest setup?)
>>
>> Problem is I *do* have the latest version of setup! I just downloaded 
>> it again to make sure. Same error. Tried mirrors.kernel.org - same error!
>
> I assume you've seen 
> <http://cygwin.com/ml/cygwin/2004-08/msg00587.html> by now. If not, 
> read through it. The problem is fixed.

Yes, saw it right after I posted this. Tried a quick download from 
planetmirror.com again and received the same error. I assumed the fixes 
was purqulating(sp?) and decided to try again today. Again, once I get 
into work...

>> As for my cron problem I can execute rudimentary commands such as ls, 
>> pwd and redirect the output to /tmp/debug.log. From that I can see 
>> that pwd tells me that I'm in /var/cron. The script I want to execute 
>> is under ~/bin (which is on a network share). I copied that script to 
>> /tmp and insured that it was set 777. Then I performed the following 
>> cron jobs:
>>
>> 18 17 * * * pwd >> /tmp/debug.log 2>&1
>> 19 17 * * * ls >> /tmp/debug.log 2>&1
>> 20 17 * * * ls -l /tmp/myscript >> /tmp/debug.log 2>&1
>> 21 17 * * * /tmp/myscript >> /tmp/debug.log 2>&1
>>
>> Here's the result:
>>
>> /var/cron
>> tabs
>> -rwxrwxrwx 1 TPAD3741 Domain U 5201 Aug 17 17:15 /tmp/myscript
>>
>> /tmp/myscript never get's executed.
>
> Sorry, can't really help here. There's just not enough information about
> what your script does or what your environment for me to hazard a guess.
> If you post more details or, better yet, a small test case, I can try it.
> The simple test I did which just echos "Hello World" from a bash script
> worked fine for me.

Well initially it was a Perl script that I'm trying to run through cron. 
But I then stripped it down to just:

#!/bin/bash
echo "testme" >> /tmp/debug.log 2>&1

Nothing additional got written into /tmp/debug.log.
-- 
Diplomacy - the art of letting someone have your way.


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