Skip to content

multihost remote command executor

Notifications You must be signed in to change notification settings

hendrap259/rexec

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remote Exec

Simple program to exec command remotely in multiple server using ssh.

Download

using installer

if you use MacOS, you can use brew

https://brew.sh

then after brew installed, please install wget

brew install wget

then you can directly install this repository

wget https://github.com/hendrap259/rexec/raw/master/rexec

using git clone

git clone https://github.com/hendrap259/rexec
go mod init github.com/hendrap259/rexec
go mod tidy
go build

then you can move the output binary into your /usr/local/bin

mv rexec /usr/local/bin/rexec

Usage

rexec [-e | -h <hosts>|-g <group>] <command>

# example of executing command remotely

# single server
rexec -h [email protected] tail -f /var/log/nginx/access.log

# multiple server
rexec -h [email protected],[email protected] zgrep 500 /var/log/nginx/access.log.1.gz

# using file config
rexec grep 500 /var/log/nginx/access.log

# edit file config
rexec -e

Config

Put host config to be line separated. example:

or you can group it. example:

Thanks

About

multihost remote command executor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%