简体   繁体   中英

Linux shell scripting for different tabs

我想要一个脚本,执行后将打开多个选项卡,并且每个选项卡上都会运行指定的命令。基本上该命令是ssh即连接到其他机器。

你可以尝试这样的事情;

gnome-terminal --tab  --title "server1" -x bash -c "ssh -t user1@host1 'nohup yourCommand'" --tab  --title "server2" -x bash -c "ssh -t user2@host2 'nohup yourCommand'"

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