Skip to content

A short script to run any command against ssh using 'Except'

Notifications You must be signed in to change notification settings

prashantgupta24/expect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

This script will let you run any command against a list of hosts using ssh, and it prompts for a password.

It is particularly helpful if the hosts are only accessable via a password prompt.

In this script, I'm logging into a list of hosts and restarting tomcat on all of them.

Usage

Have a hosts.txt file in the same folder as the script file, and have all the I.P's listed in that file, each on a new line.

hosts.txt

10.11.12.13
10.12.34.56
12.44.66.77

About

A short script to run any command against ssh using 'Except'

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages