<br><br><div class="gmail_quote">On Fri, Jul 1, 2011 at 5:45 AM, Donald Talbert <span dir="ltr"><<a href="mailto:donaldtalbert@gmail.com">donaldtalbert@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Fri, 2011-07-01 at 05:05 -0400, amritpal pathak wrote:<br>
><br>
><br>
> On Fri, Jul 1, 2011 at 4:40 AM, Donald Talbert<br>
> <<a href="mailto:donaldtalbert@gmail.com">donaldtalbert@gmail.com</a>> wrote:<br>
><br>
>         On Thu, 2011-06-30 at 07:02 -0400, amritpal pathak wrote:<br>
>         ><br>
>         ><br>
>         > On Thu, Jun 30, 2011 at 6:54 AM, Jordon Bedwell<br>
>         <<a href="mailto:jordon@envygeeks.com">jordon@envygeeks.com</a>><br>
>         > wrote:<br>
>         >         On 6/30/2011 5:46 AM, Carl Friis-Hansen wrote:<br>
>         >         > You might need to do it on the same line, like:<br>
>         >         > gnome-terminal -e "ls -l"<br>
>         >          it couldn't help.It is executing the command in<br>
>         same terminal<br>
>         >         even it is not opening new one despite<br>
>         "gnome-termial" was<br>
>         >         opening a new terminal at least.<br>
>         ><br>
>         ><br>
>         ><br>
>         >   Thanks<br>
><br>
><br>
>         I might be mistaken on what your trying to accomplish but<br>
>         heres a way to<br>
>         do this. You will need to 'screen' package so type, then read<br>
>         the man<br>
>         page on it, very easy to use.<br>
><br>
>         sudo apt-get install screen<br>
>          done.<br>
>         Heres how you do this. (A snip of code from our scripts)<br>
><br>
>         screen -AdmS server /srv/serv/linux-start.sh<br>
><br>
>         you would type...<br>
><br>
>         screen -AdmS windowname directorytoscript-or-whatyouwanttorun<br>
>           windowname is for what?<br>
>      is it user-choice to give a name what he wants?<br>
>      windowname is name to new opened terminal?<br>
><br>
><br>
>         screen is a very very useful program, be sure to read the man<br>
>         page. Its<br>
>          not hard to learn and will help you with bash shells.<br>
><br>
>      Thank you very much.<br>
>       I am newbie to bash scripting.I tried your give code but it did<br>
> not work.It again did not open a new terminal and even did not ran the<br>
> last command.See the my code below.<br>
>  May be i am wrong somewhere.<br>
>  This is a a.sh file.<br>
><br>
>   echo "what is your name"<br>
> read b<br>
> echo "your name is $b "<br>
> screen -AdmS try sudo wget<br>
> <a href="http://www.kannel.org/download/1.4.3/gateway-1.4.3.tar.gz" target="_blank">http://www.kannel.org/download/1.4.3/gateway-1.4.3.tar.gz</a><br>
><br>
><br>
><br>
><br>
>         <a href="http://amritpalpathakgne.wordpress.com" target="_blank">amritpalpathakgne.wordpress.com</a><br>
<br>
</div></div>It ran, type 'screen -ls' you should see a screen labeled "try".<br>
With screen the 'd' flag means detach the screen so your script can<br>
continue. So for a more desired effect maybe you could try removing the<br>
d.<br>
<div class="im"><br>
screen -AdmS try sudo wget<br>
<a href="http://www.kannel.org/download/1.4.3/gateway-1.4.3.tar.gz" target="_blank">http://www.kannel.org/download/1.4.3/gateway-1.4.3.tar.gz</a><br>
<br>
</div>But I see what your trying to do now...<br>
<br>
See if this does what you want it to... if it does feel free to remove<br>
screen by typing 'sudo apt-get auto-remove screen'<br>
<br>
gnome-terminal -e 'wget<br>
<a href="http://www.kannel.org/download/1.4.3/gateway-1.4.3.tar.gz" target="_blank">http://www.kannel.org/download/1.4.3/gateway-1.4.3.tar.gz</a>'<br>
<br>
Let me know if this works for you.<br>
 Rocks.......:)</blockquote><div>    its is working.</div><div>    But i tried two commands first is running well in 1st newly open terminal but second is not.It is showing the 2nd new terminal is appear for a moment and then it disappair.</div>
<div>why?</div><div><br></div><div> see the code please.</div><div> </div><div>echo "what is your name"</div><div>read b</div><div>echo "your name is $b "</div><div>gnome-terminal -e 'wget <a href="http://www.kannel.org/download/1.4.3/gateway-1.4.3.tar.gz">http://www.kannel.org/download/1.4.3/gateway-1.4.3.tar.gz</a>'</div>
<div>gnome-terminal -e 'sudo smsbox -v 1 kannel/kannel.conf'</div><div><br></div><div>Thanks you very much </div><div><br></div><div><a href="http://amritpalpathakgne.wordpress.com">amritpalpathakgne.wordpress.com</a>  </div>
</div>