delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/23/09:08:39

X-Spam-Check-By: sourceware.org
Message-ID: <43AC04C7.5070405@byu.net>
Date: Fri, 23 Dec 2005 07:08:07 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: Christophe Sauthier <christophe DOT sauthier AT gmail DOT com>
CC: Cygwin List <cygwin AT cygwin DOT com>
Subject: Re: Cron and find
References: <780a907f0512230551g8939f2fw66e09495722ec2ba AT mail DOT gmail DOT com>
In-Reply-To: <780a907f0512230551g8939f2fw66e09495722ec2ba@mail.gmail.com>
X-IsSubscribed: yes
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Christophe Sauthier on 12/23/2005 6:51 AM:
> Hi,
> 
> I am facing a weird stuff : I am executing a shell script that
> contains a call to the find command.
> 
> When I am running it from the shell command list, everything run
> smoothly... But when I am calling it from my crontab, find didn't
> seems to return anything... In fact it didn't to work at all...

It would help if you actually provided the command line in question,
rather than just describing it.  We aren't mind readers, after all.

> 
> I've been googling a bit, and I've found nothing really usefull...
> Does anybody encount that problem and has a solution ? By the way,
> just a little precision : the user that execute the cron job and the
> shell are the same, and my system is win 2003.

Actually, the users probably aren't the same.

http://cygwin.com/faq/faq-nochunks.html#faq.using.shares

My guess is that you are trying to use find to traverse a network share,
hence it isn't finding anything since the share is inaccessible to the
SYSTEM user.

> 
> Otherwise if someone has a proper solution to get all the directory
> contained inside an other one, and just the first level of same, I am
> interested... By a proper solution I mean, avoiding just a simple ls
> and then full of cut/grep/pipes...

If find can't see the directory in question, then ls can't either.

Also, following these directions will help us help you:

> Problem reports:       http://cygwin.com/problems.html

- --
Life is short - so eat dessert first!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDrATG84KuGfSFAYARAj+LAKCyy+tjAjNHK9amXCrHv7dy23JchwCfW8Kd
Ccv07QOb5WUVD0HSY+AWTW4=
=nsS6
-----END PGP SIGNATURE-----

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