Re:Watch – A Useful Linux Command You May Have Never Heard Of
by Someone on Wednesday October 27, 2010 @03:35AM
(#1837685)
Yes, that is what I was complaining about. An alternative, consistent with 'at', could be 'every':
*every 2s ls*
*echo "ls" | every 5m
For readability, I would then drop the default for the time interval; the command without the time interval (every ls) reads awfully.And yes, that first way of specifying what to repeat is different from the way at does it. I am not sure I would want to follow 'at' in that respect.
"watch" does not make the computer watch anything (at least in its default mode of operation); it makes the computer run a command repeatedly and the user watches it. "repeat" or "refresh" might have been more consistent names.