This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cron and find


-----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@byu.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]