Daemon action server doubt (terminal being available)

Hi,
I have a doubt about the daemon command (&). When I execute in the PowerShell, the line:
roslaunch ardrone_as action_server.launch &
I get the following:

My question is: shouldn’t the action be running in the background and letting the PowerShell available? I mean, like the following:
2020-05-23 18_49_38-Window - copia

Thanks !

Hi,
You can blame Linux for that :slight_smile:

Your program is indeed running in the background, but the output is still sent to the screen because that’s the default behaviour for roslaunch.

Your can get your terminal back temporarily by using Ctrl + C (it won’t stop the server). If there are further outputs, they might still show up!

If you don’t want that, you will need to redirect the output somewhere else - a file or /dev/null (black hole):

user:~$ roslaunch ardrone_as action_server.launch > /dev/null 2>&1 &

OR

user:~$ nohup roslaunch ardrone_as action_server.launch &
[4] 17649
user:~$ nohup: ignoring input and appending output to 'nohup.out'
# press Ctrl + C to exit the nohup message. Your program output will be in `nohup.out`
1 Like