Home > OS >  How the shell in the newly opened more than input commands in the terminal
How the shell in the newly opened more than input commands in the terminal

Time:10-25

I have to open a new terminal and SSH in the new terminal link, but don't know how to after SSH on the link in the new terminal to the input command
Your own scripts:
#!/bin/sh
Gnome terminal - t "title - the name" - x bash - c "SSH [email protected]; The exec bash;"

CodePudding user response:

Apparently, you can write a script, as a parameter to hurl execution,
Interactive, seems to be no good

CodePudding user response:

SSH [email protected]; The exec bash.

This is again after SSH to exit the exec bash?

CodePudding user response:

The building Lord I also encountered similar problems solved

CodePudding user response:

SSH [email protected] "ls"

CodePudding user response:

Excuse me, would you please tell me how to solve? Recently, I also encountered the same problem, need to use QT to control remote turtlebot robot, first SSH to the system (" gnome terminal - x bash - c 'SSH [email protected] & amp;" ); Will open a terminal is successful SSH to the remote machine, but I want to run and then launch files, system (" gnome terminal - x bash - c 'SSH [email protected]; roslaunch tturtlebot_bringup minimal. Launch '& amp;" ) t took behind a hope to be able to add and run, but according to the results won't run, just run to the SSH will no longer run, could you tell me how to solve? Have what good advice!! Thank you very much!!

CodePudding user response:

Excuse me, would you please tell me how to solve? Recently, I also encountered the same problem, need to use QT to control remote turtlebot robot, first SSH to the system (" gnome terminal - x bash - c 'SSH [email protected] & amp;" ); Will open a terminal is successful SSH to the remote machine, but I want to run and then launch files, system (" gnome terminal - x bash - c 'SSH [email protected]; Roslaunch tturtlebot_bringup minimal. Launch '& amp;" ) t took behind a hope to be able to add and run, but according to the results won't run, just run to the SSH will no longer run, could you tell me how to solve? Have what good advice!! Thank you very much!!
  • Related