LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to launch an app in terminal, & keep it running after I close terminal? (https://www.linuxquestions.org/questions/linux-general-1/how-to-launch-an-app-in-terminal-and-keep-it-running-after-i-close-terminal-368739/)

kornerr 10-01-2005 10:01 AM

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.

jailbait 10-01-2005 11:04 AM

"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

aysiu 10-01-2005 11:28 AM

Don't launch it from terminal. Use the "Run" command instead.

perfect_circle 10-01-2005 11:46 AM

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:
Code:

nohup <command>

Komakino 10-01-2005 03:39 PM

alternatively, once you have it running in the background, type:
Code:

exit
to close the terminal and leave the app running.

perfect_circle 10-01-2005 06:09 PM

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....:)

kornerr 10-01-2005 10:13 PM

Thanks, perfect_circle, Komakino.

Never knew that "exit" is so smart ;)

spiral out 06-24-2006 05:54 PM

and i found out that when you run in terminal window:
Code:

<program> &exit
the terminal will close automatically...

maybe old news... :rolleyes:


All times are GMT -5. The time now is 10:54 AM.