简体   繁体   中英

Bash script that opens new terminal over ssh

I am working on making a remote controlled vehicle and I connect to a Jetson with my laptop over WiFi. I have written a bash script to start each sub-process on the Jetson and plan to SSH from my laptop to the Jetson to run this script. Is there a way for me to see the new terminals this bash scripts opens so I can view the status of each system? BTW, both are running Ubuntu 18.04

if you have xterm installed,then you can use the following command to open your ssh session on another terminal:

xterm -e ssh root@*.*.*.*

if you don't have xterm installed then you can use one of the following:

gnome-terminal -- command

konsole -e command

terminal -e command

source: https://askubuntu.com/questions/46627/how-can-i-make-a-script-that-opens-terminal-windows-and-executes-commands-in-the

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