Hello I am running Ubuntu 10.04 and learning the ROS (Robot Operating System) which means that I enter quite a lot of shell commands
I am currently creating some BASH script files to make my work easier, but there are certain commands which must be run in another console.
So please tell me what commands I must write in my .sh file so that it can run it's commands in one window,then start another window in which it run other commands, but from the same .sh file
Or they could be in different .sh files they just need to run in different consoles.
You could run your script in another terminal emulator window, I suppose
gnome-terminal
with the commandYou could simplify the process defining a function in your
~/.bashrc
where can choose the name you prefer instead of
start
. You use the function in this way(you need to restart the terminal for the shell to know about the new function).
As you can see, there is a little problem, the window closes once the command terminates. To avoid this you could wrap your command in a shell script and add a last line with a
read
command:Then when you call
it will not closes, waiting for your input.
Unfortunately, It is difficult to automate this in the
start
function.