Watching a file on diskPaul Reinheimer wrote an article on a bug he was trying to solve. He wrote:
If you want to watch the last lines of a file to see when it changes, try this in linux: Every 2 seconds, it will run tail on your file and display you the last 10 lines. If the last line changed, you will see it appear in the next 2 seconds. If you want to watch only line 30: watch 'head -30 myfile | tail -1' The watch utility seem to be installed by default on distribution like ubuntu and Suse. PS: I tried posting this as a comment on Paul's blog but it told me:
|
SearchDrupal ContributionsMake a Payment to Christian Roy |
Thanks
Thanks for the heads up on the tool, I'll take a look at this tonight! :)
paul
Post new comment