How to execute a command in newly open terminal(gnome-terminal) in scripting ?
Carl Friis-Hansen
ubuntuuser at carl-fh.com
Thu Jun 30 10:46:42 UTC 2011
Quoting amritpal pathak <amritpalpathak1 at gmail.com>:
> hey
> I am making a script in which i am opening a new terminal using
> "gnome-terminal" and at next line in scripting ,i have another command to
> start some process.I need this command should be executed seprately in newly
> open terminal but it is running in current terminal.
> How i can do it .
>
> Thanks in advance
>
> amritpalpathakgne.wordpress.com
>
You might need to do it on the same line, like:
gnome-terminal -e "ls -l"
If you want really good control, you could make a small C or C++ program.
Regards
Carl Friis-Hansen
More information about the ubuntu-users
mailing list