in reply to if owner A change to owner B

No offense, but it seems like a trivial shell script. Who cares if it takes overnight to run?

But if you insist on learning perl to do it, check out the File::Find module.

Replies are listed 'Best First'.
Re^2: if owner A change to owner B
by martap (Initiate) on Dec 19, 2009 at 18:52 UTC
    that's the problem, it needs to complete within 30 min as we only get a 30 min window to bring the app down.

      That's about 500 files per second. That doesn't sound too fast to me, but I've never needed to do that sort of bulk change, either. My first suggestion is to get some data about how fast chown or chown runs, then break up the list of 106 files into however many lists it takes to permit each list to finish comfortably within 30 minutes.

      Alternatively, patch the app or the script that starts the app to chown the file before it's accessed.


      Information about American English usage here and here. Floating point issues? Please read this before posting. — emc