Socket
Socket
Sign inDemoInstall

cli-interval

Package Overview
Dependencies
4
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cli-interval

Run a command at a given interval, and aggreate its output


Version published
Weekly downloads
3
decreased by-25%
Maintainers
1
Install size
110 kB
Created
Weekly downloads
 

Readme

Source

interval

Repeat a command at a given interval, and aggregate its output.

NPM License Dependencies

npm install -g cli-interval

The 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

  • --help print the command usage
  • -t specify the interval at which to run the command, e.g.
    • -t 0.5 every 500 milliseconds
    • -t 10 every 10 seconds
    • -t 5s every 5 seconds
    • -t 2m every 2 minutes
    • -t 1h every hour

FAQs

Last updated on 06 Nov 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc