Hi Lyle,

I'm admittedly on the Linux newbie side here, in fact this is my first
post to slug (*waves*), so this is probably a long shot ...

The problem is that evertime the scripts detects a file it tries to open itimmediately even though it is still being created and this brings down our file server. Is there a way of placing a "wait until

Perhaps the lsof (lists open files) utility could help here, grepping for each file found to make sure nothing is accessing it. Since you're looping anyway, you could just not process it until it does appear to be free. This is at least as kludgey as any other indirect solution, but it might work with some tweaking.

running=1;
while [ $running -eq 1 ]; do

Ouch! Isn't that using every spare CPU cycle on useless processing? Maybe a small sleep would be in order in there somewhere.

- Rog



--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to