Skip to content
/ e Public

Simple shell scripts for remote interactives using expect.

License

Notifications You must be signed in to change notification settings

pwd/e

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

e

Simple shell scripts for remote interactives using expect.

SSH登录到主机a1

➜  ~  e s a1

在远程主机a1上执行uptime命令

➜  ~  e e a1 uptime

abc.txt文件通过scp命令拷贝到主机a1

➜  ~  e put a1 abc.txt /home/tom/abc.txt

将主机a1上的/home/tom/abc.txt文件通过scp命令拷贝到本地a1

➜  ~  e get a1 /home/tom/abc.txt abc.txt

根据list1.conf文件在一组主机上远程执行命令,每行为一个预定义的主机名

➜  ~  e all ./list1.conf uptime

列出通过e命令管理的主机列表

➜  ~  e
s.a1: [email protected] Pandora 10023 pass
s.a2: [email protected] Pandora 22 nopass

About

Simple shell scripts for remote interactives using expect.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages