X-Spam-Check-By: sourceware.org Message-ID: <7398207.post@talk.nabble.com> Date: Fri, 17 Nov 2006 03:59:52 -0800 (PST) From: cygwill To: cygwin AT cygwin DOT com Subject: Re: Cron and find In-Reply-To: <454146830002AB83@mail-6-uk.mail.tiscali.sys> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: will DOT wright AT tiscali DOT co DOT uk References: <454146830002AB83 AT mail-6-uk DOT mail DOT tiscali DOT sys> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 Hi - is there any more information I can provide to that below to possibly get more responses? I'm banging my haed against a wall with this a bit, and if I can't get cron to work as it should I might have to resort to some horrid windows solution.... cygwill wrote: > > Hi, > > I have a problem getting a find command which works fine on the command > line > to work when run via cron. > > The command is: > > 4 10 * * 1-5 find > /cygdrive/d/Apps_v8p4//Bridge/DataFeed/deploy//quotefeed/logs > -type f -name stdout.log\.* -mtime +2 > > /cygdrive/d/Apps_v8p4/Bridge/DataFeed/deploy/bin/testfind.log > > This produces an empty "testfind.log" file but when run from the command > line I get: > > $ find /cygdrive/d/Apps_v8p4//Bridge/DataFeed/deploy//quotefeed/logs -type > f -n > ame stdout.log\.* -mtime +2 > /cygdrive/d/Apps_v8p4//Bridge/DataFeed/deploy//quotefeed/logs/stdout.log.03Nov20 > 06 > /cygdrive/d/Apps_v8p4//Bridge/DataFeed/deploy//quotefeed/logs/stdout.log.06Nov20 > 06 > /cygdrive/d/Apps_v8p4//Bridge/DataFeed/deploy//quotefeed/logs/stdout.log.07Nov20 > 06 > /cygdrive/d/Apps_v8p4//Bridge/DataFeed/deploy//quotefeed/logs/stdout.log.08Nov20 > 06 > /cygdrive/d/Apps_v8p4//Bridge/DataFeed/deploy//quotefeed/logs/stdout.log.09Nov20 > 06 > /cygdrive/d/Apps_v8p4//Bridge/DataFeed/deploy//quotefeed/logs/stdout.log.10Nov20 > 06 > > ...as expected. > > I have read the thread > http://www.cygwin.com/ml/cygwin/2005-12/msg00905.html > and scaned google, mailing lists etc but don't see anything of use. > > I also tried making sure the user can see the directory from cron by > making > a more simple "ls" job... > > 14 10 * * 1-5 ls > /cygdrive/d/Apps_v8p4//Bridge/DataFeed/deploy//quotefeed/logs >> /cygdrive/d/Apps_v8p4/Bridge/DataFeed/deploy/bin/lstestfind.log > > This produces the expected list in the output file: > > quotefeed.log > quotefeed.log.1 > quotefeed.log.10 > quotefeed.log.11 > quotefeed.log.12 > quotefeed.log.13 > quotefeed.log.14 > quotefeed.log.15 > quotefeed.log.16 > quotefeed.log.17 > quotefeed.log.18 > quotefeed.log.19 > quotefeed.log.2 > quotefeed.log.20 > quotefeed.log.3 > quotefeed.log.4 > quotefeed.log.5 > quotefeed.log.6 > quotefeed.log.7 > quotefeed.log.8 > quotefeed.log.9 > stdout.log > stdout.log.03Nov2006 > stdout.log.06Nov2006 > stdout.log.07Nov2006 > stdout.log.08Nov2006 > stdout.log.09Nov2006 > stdout.log.10Nov2006 > stdout.log.13Nov2006 > stdout.log.14Nov2006 > > So - it seems it can see the directory, but for some reason the find > command > isn't happy... any ideas? > > Have attached the cygcheck file as suggested. > > Thanks for any help > > Will > > > > ___________________________________________________________ > > Tiscali Unlimited Broadband with FREE weekend calls only 12.99! > http://www.tiscali.co.uk/products/broadband/ > > > > > > -- > 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/ > -- View this message in context: http://www.nabble.com/Cron-and-find-tf2628629.html#a7398207 Sent from the Cygwin Users mailing list archive at Nabble.com. -- 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/