Horje
run same command in different hosts Code Example
run same command in different hosts
#!/bin/bash
USERNAME=someUser
HOSTS="host1 host2 host3"
SCRIPT="pwd; ls"
for HOSTNAME in ${HOSTS} ; do
    ssh -l ${USERNAME} ${HOSTNAME} "${SCRIPT}"
done




Shell

Related
list files of type txt from cmd Code Example list files of type txt from cmd Code Example
Install Strimio on ubuntu Code Example Install Strimio on ubuntu Code Example
quick checkers for ubuntu Code Example quick checkers for ubuntu Code Example
how to install newrelic agent on aws linux Code Example how to install newrelic agent on aws linux Code Example
scrcpy fedora install Code Example scrcpy fedora install Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9