Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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. |
|
 |
10-01-2005, 10:01 AM
|
#1
|
|
Member
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893
Rep:
|
How to launch an app in terminal, & keep it running after I close terminal?
I like terminal, but sometimes I need to use Nautilus to launch, e.g., PDF viewer.
Then I usually close Nautilus and go on watching PDF.
I want to do the same from within terminal.
Is there a way to launch an app from terminal, and keep it running after I close the terminal?
(I'm not asking of "&" suffix)
Thanks.
|
|
|
|
10-01-2005, 11:04 AM
|
#2
|
|
Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Squeeze, Fedora 14
Posts: 7,268
Rep:
|
"Is there a way to launch an app from terminal, and keep it running after I close the terminal?
(I'm not asking of "&" suffix)"
You could minimize the terminal.
----------------------
Steve Stites
|
|
|
|
10-01-2005, 11:28 AM
|
#3
|
|
Senior Member
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776
Rep:
|
Don't launch it from terminal. Use the "Run" command instead.
|
|
|
|
10-01-2005, 11:46 AM
|
#4
|
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
Re: How to launch an app in terminal, & keep it running after I close terminal?
Quote:
Originally posted by kornerr
I like terminal, but sometimes I need to use Nautilus to launch, e.g., PDF viewer.
Then I usually close Nautilus and go on watching PDF.
I want to do the same from within terminal.
Is there a way to launch an app from terminal, and keep it running after I close the terminal?
(I'm not asking of "&" suffix)
Thanks.
|
hi kornerr, you are looking for the "nohup" command. Next time you launch such a command from a terminal, launch it like this:
|
|
|
|
10-01-2005, 03:39 PM
|
#5
|
|
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938
Rep:
|
alternatively, once you have it running in the background, type: to close the terminal and leave the app running.
|
|
|
|
10-01-2005, 06:09 PM
|
#6
|
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
Thats true, I had never noticed this. Typing "exit" or pressing CTRL+D in the terminal also does the job.
I think I learned something today.... 
|
|
|
|
10-01-2005, 10:13 PM
|
#7
|
|
Member
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893
Original Poster
Rep:
|
Thanks, perfect_circle, Komakino.
Never knew that "exit" is so smart 
|
|
|
|
06-24-2006, 05:54 PM
|
#8
|
|
LQ Newbie
Registered: Jun 2006
Posts: 2
Rep:
|
and i found out that when you run in terminal window:
the terminal will close automatically...
maybe old news... 
|
|
|
|
| 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 09:01 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
|
|