Many times we need to ssh remote servers to run specific linux commands manually. If you have to run it quite often and run the same command on multiple servers doing it manually becomes hectic. Below is sample code which you can use to create a shell script (In Linux) or a Batch program (In Windows). The first file - remote.cmd - lists all the commands that you want to run as a group. The second file is the executable batch file- I have wrote it for windows but it can be written in shell script for Linux as well.
Please use this thread to ask the related questions.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes