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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-07-2004, 11:46 AM
|
#1
|
|
Member
Registered: May 2004
Location: Iceland
Distribution: Ubuntu Dapper Drake
Posts: 172
Rep:
|
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?
|
|
|
|
07-07-2004, 11:50 AM
|
#2
|
|
LQ Newbie
Registered: Jul 2004
Posts: 6
Rep:
|
type for instance "mozilla &"
|
|
|
|
07-07-2004, 11:55 AM
|
#3
|
|
Senior Member
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851
Rep:
|
try
[user@domain]$ mozilla > mozilla.out &
|
|
|
|
07-07-2004, 11:56 AM
|
#4
|
|
Member
Registered: May 2004
Location: Iceland
Distribution: Ubuntu Dapper Drake
Posts: 172
Original Poster
Rep:
|
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.
|
|
|
|
07-07-2004, 12:02 PM
|
#5
|
|
LQ Newbie
Registered: Jul 2004
Posts: 6
Rep:
|
as far as i've seen backgrounding the process (via the &) severs all ties to the console. Try it out and see what happens
|
|
|
|
07-07-2004, 12:45 PM
|
#6
|
|
Senior Member
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851
Rep:
|
try killing the programs via the terminal
ie:
user@domain]$ ps
5102 mozilla
user@domain]$ kill -9 5102
|
|
|
|
07-07-2004, 12:52 PM
|
#7
|
|
Member
Registered: Jul 2004
Location: Ft. Collins, CO
Distribution: Knoppix, PHLAK, FC2, Debian, Mandrake
Posts: 33
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:35 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|