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 X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Wed, 31 Mar 2004 11:10:35 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: fdr cc: cygwin AT cygwin DOT com Subject: Re: please help! In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Wed, 31 Mar 2004, fdr wrote: > Hello ! > > I'm french and i have a small problem. Are those two related? :-) > I have a script as edit by crontab -e. > if i do the script from bash that works and the crontab do the script > but this command in the sccript is not execute: > find /cygdrive/c/cygwin/temp -mmim 10 -print | xargs rm -f > i don't understand, can you help me? > (that works succefully on debian for example...) > > florent DERLON A more descriptive subject would help... Plus, I'd be very surprised if "/cygdrive/c/cygwin/temp" worked in debian... :-) Seriously, though, what is the error you get from "find"? Is it "FIND: Parameter format not correct"? If so, have you seen ? Check that the PATH is set in the same way for the cron service as it is in your default bash session (i.e., that "/bin" is in the PATH and that it precedes "/cygdrive/c/WINNT/..."). I'd check the whole environment, just to be sure. A couple of minor points: I suspect "C:\cygwin" is mounted on "/" on your system, so why not use "find /temp" instead? Also, if it's possible that you'd have any files with spaces in them in that directory, you should probably use "-print0" and "xargs -0". Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- 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/