我需要編寫shell腳本中的CentOS Linux的多機並行執行C++程序不問密碼,所以我能爲您的答覆,請幫我感謝寫。shell腳本在平行於不同的機器EXCUTE C++程序不問密碼
我嘗試寫這樣的,但這並不平行,並詢問密碼
#!/bin/sh
(
ssh [email protected] "/oracle/Desktop/analysis/engine"#machine1
ssh [email protected] "/home/storage/Desktop/storage/storage"#machine2
ssh [email protected] "/home/oracle/Desktop/agregete/collection"#machine3
)
the 3 executable files are engine,storage and collection respectively
每個順序執行,並要求密碼,但我需要癱瘓和執行不問密碼
至於密碼的問題,爲什麼不公鑰分發到你想登錄到系統? –
對於另一個問題,你確實知道如何在後臺運行命令? –
@JoachimPileborg我如何可以執行謝謝你的性反應 –