New answers tagged real-time
This one can run at least 100 times a second with very accurate resolution. The existence of the directory of the number of loops per minute creates the schedule. This version supports microsecond resolution assuming your computer can handle it. The number of executions per minute does not have to to evenly divisible by 60 nor is it limited to 60 I have ...
If on Linux, something like this should do what you are looking for: inotifywait -m -e close_write --format %w%f -r /watch/dir | while IFS= read -r file do cat < "$file" done
Top 50 recent answers are included