SkillAgentSearch skills...

Rexec

multihost remote command executor

Install / Use

/learn @jekiapp/Rexec
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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 root@192.168.100.160 tail -f /var/log/nginx/access.log

# multiple server
rexec -h root@192.168.100.160,root@192.168.100.161 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:

 root@192.168.0.123
 root@192.168.0.124

or you can group it. example:

 [server1]
 root@192.168.0.1
 root@192.168.0.2

 [other-server]
 root@192.168.0.3
 root@192.168.0.4

Thanks

  • https://github.com/alileza/rtail
View on GitHub
GitHub Stars6
CategoryDevelopment
Updated1y ago
Forks14

Languages

Go

Security Score

60/100

Audited on Jul 9, 2024

No findings