How to execute a command in newly open terminal(gnome-terminal) in scripting ?
Amrit Pal Pathak
amritpalpathak1 at gmail.com
Fri Jul 1 14:23:34 UTC 2011
On Fri, Jul 1, 2011 at 10:16 AM, Koh Choon Lin <kchoonlin at hotmail.com>wrote:
>
>
> > Sir can i open number of terminals in this way and execute
> > different commands in different terminals ?
> >
> > Waiting your wise reply
> >
> > Thank you very much for support !!
>
> Hi
> You can open multiple instance of the terminal with different input of
> command. There are also tabs available.
>
> but how to do it.As guided by Donald i could do just open one terminal and
> when i tried to open 2 and execute different commands in it , it didn't
> work.
>
See following code.
echo "what is your name"
read b
echo "your name is $b "
gnome-terminal -e 'wget
http://www.kannel.org/download/1.4.3/gateway-1.4.3.tar.gz'
gnome-terminal -e 'sudo smsbox -v 1 kannel/kannel.conf'
Thanks
amritpalpathakgne.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110701/dd1b8d28/attachment.html>
More information about the ubuntu-users
mailing list