On Mon, Feb 15, 2010 at 06:10:52AM -0800, harryos wrote: > Hi > I am new to linux and am using jdownloader as a d/l manager.I run this > by using > >> bash jd.sh > in the terminal.The problem is that the terminal window is taken up by > the program's output and displays all the info while the program is > running.If I restart it from the program gui,the terminal is freed and > i can even close the terminal without shutting down the program.I want > to know if I can start the program (for the first time) without tying > the terminal to it. > (The jd.sh has -rwxr-xr-x ) > will be glad with some help > > thanks > harry > > -- > You received this message because you are subscribed to the Linux Users Group. > To post a message, send email to [email protected] > To unsubscribe, send email to [email protected] > For more options, visit our group at > http://groups.google.com/group/linuxusersgroup There are two ways:
1) Use bash's job control, i.e.: $ bash jd.sh & disown ## this will dump you back to the terminal, though the program will be ## spitting output. You can close the terminal window. ## to avoid all the output $ bash jd.sh >/dev/null 2>&1 & disown 2) Use nohup: $ nohup bash jd.sh & ## works the same as bash jd.sh & disown, ## but this will work in shells like ksh w/o proper job control ## hide the output $ nohup bash jd.sh >/dev/null 2>&1 & -- You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup
