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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
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
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,385
|
"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,775
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... 
|
|
|
All times are GMT -5. The time now is 09:21 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
|
|