Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
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.
I understood from you that the process stopped since i closed the terminal.
What is the command that enable me to background the process to keep it running even i closed the terminal?
Is there a command show me the processes that are running now?
Put something in background by putting a & after it. E.g. $ eaglemode &
Another thing is ctrl+z. See other jobs with $ jobs. Go to a job, with %n where n is the number of the job - you get this number from $ jobs.
Quote:
nohup(1) - Linux man page
Name
nohup - run a command immune to hangups, with output to a non-tty
Synopsis
nohup COMMAND [ARG]...
nohup OPTION
Description
Run COMMAND, ignoring hangup signals.
--help
display this help and exit
--version
output version information and exit
NOTE: your shell may have its own version of nohup, which usually supersedes the version described here. Please refer to your shell's documentation for details about the options it supports.
Last edited by lugoteehalt; 04-01-2009 at 05:04 AM.
Put something in background by putting a & after it. E.g. $ eaglemode &
Another thing is ctrl+z. See other jobs with $ jobs. Go to a job, with %n where n is the number of the job - you get this number from $ jobs.
That will put it in the background, yes. But if you do that, and close the terminal window you started it in, the job will still stop, because you killed the parent process.
To keep the job running, regardless of killing the terminal window or not, you have to start it with a nohup (I mentioned it in my first post), such as "nohup myjob &". That will start a new parent process, and put the whole thing in the background, making it totally independent of the parent terminal.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.