A NodeJS CLI tool to run a command in a fixed interval
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Sagi Dayan 92f93c7c7d
Update 'README.md'
3 years ago
bin raw implementation 3 years ago
lib raw implementation 3 years ago
.gitignore raw implementation 3 years ago
LICENSE Added MIT license 3 years ago
README.md Update 'README.md' 3 years ago
package-lock.json raw implementation 3 years ago
package.json raw implementation 3 years ago
yarn.lock raw implementation 3 years ago

README.md

iexec

Execute a command with fixed intervals until you want to stop

run $ iexec -h for usage.

Options:
  -V, --version                  output the version number
  -c, --command <command>        Command to execute wrapped in (default: null)
  -a, --arg [arg]                Arguments for the command (default: [])
  -i, --interval [milliseconds]  Interval milliseconds (default: 1000)
  -w, --wait                     Wait until execution ends before running a new process (default: false)
  -h, --help                     output usage information

example: $ iexec -c command -a arg1 -a arg2 will run this command every second: $ command arg1 arg2

Install

Clone the repo. run these commands:

$ npm install #OR yarn install
$ npm link

Now you can use the iexec command everywhere