Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 2
    Use GNU Screen gnu.org/software/screen instead of backgrounding a process. Commented Oct 6, 2021 at 17:49
  • 1
    Start the process with nohup and the &. For example, nohup some-long-running-process &. Although as @Nikita Kipriyanov suggested, screen is a much better option. Commented Oct 6, 2021 at 19:23
  • thanks! if you're happy with it please write it as an answer and i'll accept it Commented Oct 8, 2021 at 8:17
  • If your use case is just a one-off job, go with the already proposed solutions. However, if by any chance your use case is to ssh to the server to start an application or service that will run continuously, you may want to look at a systemd service. Commented Oct 19, 2021 at 18:38