How to execute a command in newly open terminal(gnome-terminal) in scripting ?

Amrit Pal Pathak amritpalpathak1 at gmail.com
Mon Jul 4 06:49:38 UTC 2011


On Fri, Jul 1, 2011 at 10:23 AM, Amrit Pal Pathak <amritpalpathak1 at gmail.com
> wrote:

>
>
> 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.
>
> Can anybody help me.?
> 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'
>
>    Please take a look on above code and give me your wisdom help.
>

   Thanks

  amritpalpathakgne.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110704/46c0ad12/attachment.html>


More information about the ubuntu-users mailing list