delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/31/11:11:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
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 <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: fdr <fdr AT cyber-networks DOT fr>
cc: cygwin AT cygwin DOT com
Subject: Re: please help!
In-Reply-To: <gJaN9-040331175034918bthg0EP-118o1odk2J2s2@glenan.cyber-networks.fr>
Message-ID: <Pine.GSO.4.56.0403311103360.1185@slinky.cs.nyu.edu>
References: <gJaN9-040331175034918bthg0EP-118o1odk2J2s2 AT glenan DOT cyber-networks DOT fr>
MIME-Version: 1.0
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
<http://cygwin.com/faq/faq_4.html#SEC42>?

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019