|P is for Practical|
oneliner: autorun script when I save it in the editorby FreeBeerReekingMonk (Deacon)
|on Mar 26, 2017 at 22:08 UTC||Need Help??|
Sometimes you get spoiled by IDE's that have F5 to save and run what you have scripted so far... so... what can you do if you have 2 xterms (one for vi, the other for the output)?
with test.pl having:
Tested to work under Win10 and Linux
Of course, there are better implementations. inotifywait or auditd if available on your system...
any perl golfers?
Update: we now incorporate the improvement made by haukex. Feel free to add more parameters if you need these