|
|
I was able to figure it out!
I hope I did this correctly as I am new to perl. In my previous question I wanted to know if instead of notifying the user of changes, could it just do something else, like run a script? Well I digged around your script and this is what I changed (I hope this is ok under your terms?):
re: running script
Of course there is no problem with you changing the script as you like. The license (Perl's "Artistic License") allows you to do more or less whatever you want as long as you maintain the copyright notice and indicate what things you changed.
Your changes to the watchfile script (to make it invoke another script when a change is detected) seem like they will do what you want. You might want to enhance your shell script to handle command-line arguments and then you could pass it interesting information such as which file got changed.
re: running script
Cool, I had not thought of that. I will make the change now. And thanks again for writing this script. I found another program in Linux that does almost what yours does and is called watch.
I was able to figure it out!
hi , |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.15 seconds |
|