X-Spam-Check-By: sourceware.org Message-ID: <43AC04C7.5070405@byu.net> Date: Fri, 23 Dec 2005 07:08:07 -0700 From: Eric Blake User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: Christophe Sauthier CC: Cygwin List Subject: Re: Cron and find References: <780a907f0512230551g8939f2fw66e09495722ec2ba AT mail DOT gmail DOT com> In-Reply-To: <780a907f0512230551g8939f2fw66e09495722ec2ba@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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/