Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 852 Bytes

README.md

File metadata and controls

45 lines (36 loc) · 852 Bytes

Remote Exec

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

Download

wget https://github.com/ahmadmuzakki/rexec/raw/master/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