简体   繁体   中英

Shell Script to SSH to Multiple Remote Machines and Leave a Command Running

I'm coding a distributed application and I need to spawn some process in multiple machines using ssh<\/code> . The problem is that this command blocks the terminal, so I need that this command runs as a process. So that I can continue giving commands and moving to another machines.

<\/h3>

the command is something like:

One option you have is to use a utility such as mussh<\/a> , which lets you do things like:

mussh -l username -m -h host1 host2 host3 -c "make run"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM