Ask Your Question

Can we live OpenStack and let a process run ?

asked 2020-03-30 09:37:26 -0500

vincentRoca gravatar image


Is it possible to start a process in background, then exit the SSH connection and come back for example the next day to retrieve the results ? It would be great in order to let the process run during all the night. I wonder if the process would be stopped because we left.

Thanks in advance

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2020-03-30 11:52:50 -0500

darkglobe gravatar image

You can utilize "screen" command. It's like multitasking session shell in linux. The good thing about this tool is you can detach the session and let it run in the background.

to enter and log your shell output :

screen -L /root/logname.txt -S yoursessionname

to detach from current screen. Once detached, screen will keep running in the background.


show current screen and its status

screen -ls

exit from screen


edit flag offensive delete link more

answered 2020-03-30 09:59:55 -0500

updated 2020-03-30 10:00:56 -0500

In general yes. It depends on the shell how you do it. In case of Bash, this is the default. Other shells need the nohup command.

What does this have to do with OpenStack?

edit flag offensive delete link more


Thanks for your answer,

I have decided to use "nohup" in the doubt and it seems to work well. It's true that my question is not very linked to OpenStack, but it's the context of use.

vincentRoca gravatar imagevincentRoca ( 2020-03-31 05:35:58 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2020-03-30 09:37:26 -0500

Seen: 28 times

Last updated: Mar 30