Skip to content

Using nohup to run commands in the background #106

@jrt324

Description

@jrt324

I need to execute a background program in Linux through MedallionShell, and even if the host's .net process is exited, the executed command will not be terminated. So far, this is what I have thought of is for Example:
nohup roslaunch test_launch agv.launch &
Please note that I added an '&' symbol at the end that means this command will run on background.
but this is not working , If i remove the end of '&', Then it can execute but this command Thread never end (Because it's long running processes)

I don't know the reason, or if there are any other solutions, please let me know.

The two goals I want to achieve are:

  1. Running the command line in the background, and
  2. Even if the .net Main process exits, the executed command line will not terminate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions