Hello,
I have a little shell script which launch some commands and I'd like to know if it's possible to open programmaticaly a new tab or terminal to launch each of the commands in a different window/tab.
Thank you
Hello,
I have a little shell script which launch some commands and I'd like to know if it's possible to open programmaticaly a new tab or terminal to launch each of the commands in a different window/tab.
Thank you
You might be able to do it so it opens them each in new instances of Terminal, but almost certainly not in tabs. Shell scripting basically works within the shell and is limited to there, so it cannot manipulate something outside of the shell, such as a GUI.
Linux Mint 9 Isadora | Linux User #450508 | Ubuntu User #16172
SilverScreenPhile | folding@home team #45104 | World Community Grid
ok I think this should work:
#!/bin/sh
gnome-terminal -e "ping www.free.fr"
gnome-terminal -e "ping www.google.fr"
Last edited by Tex-Twil; July 25th, 2007 at 09:53 AM.
I would look into screen if I where you. It should do what you need. Its kinda like tabbing inside the terminal window.
Linux Mint 9 Isadora | Linux User #450508 | Ubuntu User #16172
SilverScreenPhile | folding@home team #45104 | World Community Grid
er every one ignored my suggestion of screen huh...
Bookmarks