in reply to onchange - a script to run a command when a file changes
This code appears to run the same command on the same file for each updated file in @ARGV[1..$#ARGV]. The list form of system in a perl-style loop over file basenames would work better.
I'd be inclined to do this with make, either called from perl or in a frequent cron job.
After Compline,
Zaxo
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: onchange - a script to run a command when a file changes
by sauoq (Abbot) on Nov 21, 2003 at 02:01 UTC | |
Re: Re: onchange - a script to run a command when a file changes
by samtregar (Abbot) on Nov 21, 2003 at 23:21 UTC |