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


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/


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