cli-interval
v1.0.0
Published
Run a command at a given interval, and aggreate its output
Readme
interval
Repeat a command at a given interval, and aggregate its output.
npm install -g cli-intervalThe following example outputs a random number to stdout every second.
interval -t 1s "echo \$RANDOM"It will aggregates both stdout and stderr over time, and pipes them into its respective outputs.
Arguments
--helpprint the command usage-tspecify the interval at which to run the command, e.g.-t 0.5every 500 milliseconds-t 10every 10 seconds-t 5severy 5 seconds-t 2mevery 2 minutes-t 1hevery hour
