<br><br><div class="gmail_quote">On Fri, Jul 1, 2011 at 6:19 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 06:13 -0400, Amrit Pal Pathak wrote:<br>
><br>
><br>
> On Fri, Jul 1, 2011 at 5:45 AM, Donald Talbert<br>
> <<a href="mailto:donaldtalbert@gmail.com">donaldtalbert@gmail.com</a>> wrote:<br>
><br>
>         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<br>
>         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<br>
>         wrote:<br>
>         >         >         > You might need to do it on the same<br>
>         line, like:<br>
>         >         >         > gnome-terminal -e "ls -l"<br>
>         >         >          it couldn't help.It is executing the<br>
>         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<br>
>         accomplish but<br>
>         >         heres a way to<br>
>         >         do this. You will need to 'screen' package so type,<br>
>         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<br>
>         scripts)<br>
>         ><br>
>         >         screen -AdmS server /srv/serv/linux-start.sh<br>
>         ><br>
>         >         you would type...<br>
>         ><br>
>         >         screen -AdmS windowname<br>
>         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<br>
>         read the man<br>
>         >         page. Its<br>
>         >          not hard to learn and will help you with bash<br>
>         shells.<br>
>         ><br>
>         >      Thank you very much.<br>
>         >       I am newbie to bash scripting.I tried your give code<br>
>         but it did<br>
>         > not work.It again did not open a new terminal and even did<br>
>         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>
><br>
>         It ran, type 'screen -ls' you should see a screen labeled<br>
>         "try".<br>
>         With screen the 'd' flag means detach the screen so your<br>
>         script can<br>
>         continue. So for a more desired effect maybe you could try<br>
>         removing the<br>
>         d.<br>
><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>
>         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<br>
>         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.......:)<br>
>     its is working.<br>
>     But i tried two commands first is running well in 1st newly open<br>
> terminal but second is not.It is showing the 2nd new terminal is<br>
> appear for a moment and then it disappair.<br>
> why?<br>
><br>
><br>
>  see the code please.<br>
><br>
> echo "what is your name"<br>
> read b<br>
> echo "your name is $b "<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>
> gnome-terminal -e 'sudo smsbox -v 1 kannel/kannel.conf'<br>
><br>
><br>
> Thanks you very much<br>
><br>
><br>
> <a href="http://amritpalpathakgne.wordpress.com" target="_blank">amritpalpathakgne.wordpress.com</a><br>
<br>
</div></div>Anytime buddy. :)<br>
<font color="#888888"><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 13px; "><div>
</div></span></font></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font color="#888888"><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 13px; "><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 class="im" style="color: rgb(80, 0, 80); "><div> </div><div>echo "what is your name"</div><div>read b</div><div>echo "your name is $b "</div></div><div class="im" style="color: rgb(80, 0, 80); "><div>
gnome-terminal -e 'wget <a href="http://www.kannel.org/download/1.4.3/gateway-1.4.3.tar.gz" target="_blank" style="color: rgb(54, 68, 82); ">http://www.kannel.org/download/1.4.3/gateway-1.4.3.tar.gz</a>'</div></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></span></font></blockquote></div>