LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-07-2004, 11:46 AM   #1
brynjarh
Member
 
Registered: May 2004
Location: Iceland
Distribution: Ubuntu Dapper Drake
Posts: 172

Rep: Reputation: 30
How to open programs in terminal without being stuck to the terminal??


When I open up a terminal and write
# mozilla
for example, then mozilla starts but I can not continue using the terminal because it's making some outputs on what mozilla is doing, how can I open a program using the terminal without having it 'stuck' to the terminal?
 
Old 07-07-2004, 11:50 AM   #2
kevkev
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Rep: Reputation: 0
type for instance "mozilla &"
 
Old 07-07-2004, 11:55 AM   #3
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
try

[user@domain]$ mozilla > mozilla.out &
 
Old 07-07-2004, 11:56 AM   #4
brynjarh
Member
 
Registered: May 2004
Location: Iceland
Distribution: Ubuntu Dapper Drake
Posts: 172

Original Poster
Rep: Reputation: 30
Okay cool, works.

But is it not possible to remove complete contact with the terminal, like if I use this when I close the terminal mozilla will also close, it would be nice if it where possible to open a program using the terminal but once I close the terminal the program I opend will not.

Well I can just use the 'Run' instead I guess.

Last edited by brynjarh; 07-07-2004 at 11:58 AM.
 
Old 07-07-2004, 12:02 PM   #5
kevkev
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Rep: Reputation: 0
as far as i've seen backgrounding the process (via the &) severs all ties to the console. Try it out and see what happens
 
Old 07-07-2004, 12:45 PM   #6
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
try killing the programs via the terminal
ie:

user@domain]$ ps
5102 mozilla
user@domain]$ kill -9 5102
 
Old 07-07-2004, 12:52 PM   #7
foamrotreturns
Member
 
Registered: Jul 2004
Location: Ft. Collins, CO
Distribution: Knoppix, PHLAK, FC2, Debian, Mandrake
Posts: 33

Rep: Reputation: 15
Actually I just learned the solution to this myself. If you start mozilla like this:
# mozilla &
the program will start up correctly and you will still have control over the command prompt.
But, if you wish to close the command window while still using the program, you have to type:
# exit
at the command line and the command window will disappear while leaving the program running.
Simply clicking the "x" on the console won't do the trick because it's like prematurely ending the process. Typing exit causes the command window to close properly which leaves background processes running.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 02:45 PM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 05:54 PM
Stuck in terminal - turned on text desktop by accident dinkydarko Linux - Newbie 31 11-11-2004 05:47 AM
fluxbox user menu open terminal with root programs? darkleaf Linux - Software 2 10-14-2004 05:44 AM
finding programs in terminal? Boom Linux - Newbie 3 01-08-2003 02:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration