in reply to Rolling variable
Add this one liner to your scheduler to run hourly, and the last 8 counts will be found in the file counts:
perl -i'*' -anle"@f=<c:/test/*>; shift @F; push @F, scalar @f; print j +oin ' ', @F;" counts
Update:You do have to prime the counts file:
echo 0 0 0 0 0 0 0 0 > counts
Anyone got any experience of this phone's predecessor?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Rolling variable
by 1nickt (Canon) on Jul 30, 2015 at 16:42 UTC | |
by BrowserUk (Patriarch) on Jul 30, 2015 at 17:07 UTC | |
by 1nickt (Canon) on Jul 30, 2015 at 17:28 UTC | |
by BrowserUk (Patriarch) on Jul 30, 2015 at 18:21 UTC | |
|
Re^2: Rolling variable
by fishmonger (Chaplain) on Jul 30, 2015 at 16:41 UTC |