I am looking for a quick script to copy single file to 3 servers and then execute a command on the remote servers while displaying output on the server that I am copying the file from.
ex-
1. Create file on local machine (server A)
2. copy the new file to other servers (server b, server c, server d)
3. execute command on the remote servers (ex list users)
4. return output to txt or log file on the server that initiates the process (output to server A)
Thanks in advance.
ex-
1. Create file on local machine (server A)
2. copy the new file to other servers (server b, server c, server d)
3. execute command on the remote servers (ex list users)
4. return output to txt or log file on the server that initiates the process (output to server A)
Thanks in advance.