<br><br><div class="gmail_quote">On Fri, Jul 1, 2011 at 4:40 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 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 <<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 same terminal<br>
>         even it is not opening new one despite "gnome-termial" was<br>
>         opening a new terminal at least.<br>
><br>
><br>
><br>
>   Thanks<br>
<br>
</div></div>I might be mistaken on what your trying to accomplish but heres a way to<br>
do this. You will need to 'screen' package so type, then read 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? </blockquote><div>     is it user-choice to give a name what he wants?</div><div>     windowname is name to new opened terminal?</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
screen is a very very useful program, be sure to read the man page. Its<br> not hard to learn and will help you with bash shells.<br>
 </blockquote><div>     Thank you very much.</div><div>      I am newbie to bash scripting.I tried your give code but it did not work.It again did not open a new terminal and even did not ran the last command.See the my code below.</div>
<div> May be i am wrong somewhere.</div><div> This is a a.sh file. </div><div>     </div><div>  echo "what is your name"</div><div>read b</div><div>echo "your name is $b "</div><div>screen -AdmS try sudo 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><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><a href="http://amritpalpathakgne.wordpress.com">amritpalpathakgne.wordpress.com</a> </blockquote>
</div>