Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.

Latest commit

 

History

History
23 lines (17 loc) · 581 Bytes

File metadata and controls

23 lines (17 loc) · 581 Bytes

exec-it

Install

npm install exec-it

Run

For example, print uptime for hosts listed in host-list.txt file

cat host-list.txt | exec-it -c uptime

this module plays very well with ec2-instance-lister

Options

  • -c command to execute on remote machine
  • -f read command from a file, works only if -c is not specified
  • -p ssh port, default is 22
  • -l username on remote machine, default is ec2-user
  • -i private key, default is /a_home_dir/.ssh/id_rsa