in reply to Re^2: launch long running background program and watch final progress
in thread launch long running background program and watch final progress

So, are you saying my File::Tail approach is OK? Or is there some way that is better? I'm totally open to doing in whichever way is best...the approach I took was simply to "git 'er done"...certainly not because I was positive it was the most elegant solution...

  • Comment on Re^3: launch long running background program and watch final progress

Replies are listed 'Best First'.
Re^4: launch long running background program and watch final progress
by Marshall (Canon) on Apr 22, 2016 at 20:02 UTC
    Well "what works" is good! I'm not saying that it isn't. If you are waiting for something that might take an hour clock time, who the heck cares if you get an immediate answer? And probably some burned Mips doesn't matter at all? file tail is a polling routine that adjusts its time to the next poll. Fine. Using inotify doesn't involve any polling and therefore a) it is "faster in clock time" and b) uses less Mips to monitor what you want.

    What is "best" is very subjective and depends upon the application. I am not judging "right or wrong". I am merely suggesting other ways, which is what I think that you asked for? I don't think that there is a single "right way". There are multiple ways. Whatever achieves the objective is "good". I guess this depends upon what the objective is and how you measure it?