Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Maybe you want pssh Commented Apr 20, 2018 at 10:22
  • Sure, but I'm trying to make use of the existing tools in rhel 6.x. So that I can skip the approval process. But if it is not possible, that's OK. I was just wondering if someone has done it with built-in tools. Commented Apr 20, 2018 at 10:26
  • 1
    Just a note: Avoid structures like this one: > ip=echo ${svrs[x]} and use $(...) instead. Commented Apr 20, 2018 at 10:34
  • That should go into your question. In general, don't comment your own question, but edit your question to improve it Commented Apr 20, 2018 at 10:34
  • 1
    Standard "oldschool" way to simulate manually written commands is to write an expect script. Although this can get tedious rather quickly. If you try to automate administration tasks, it is probably better to distribute script that does what you want onto the machines - you can always use some management tool to keep it versioned and synced across all hosts. Commented Apr 20, 2018 at 10:41