Skip to content
Advertisement

Linux “screen” does not write results

I have an Ubuntu system running on a remote computer that I use for computations. On other machines whenever I want to run some time-consuming program I type:

screen

and execute my program in the resulting screen, say:

./myprogram input.xml

The program in question writes some results to an output file. This works fine on other machines.

When I try the same in the remote computer, everything is the same apart from one thing. If I close the window where the screen is running, my program stop writing results to an output file (it will also stop reading files from disk). As long as I look at the terminal window where the screen is running and the program is executing, there are no problems.

Can anyone offer some insight into why this happens and how it may be fixed?

Advertisement

Answer

Try

nohup & ./myprogram input.xml

Or rather disown,

disown & ./myprogram input.xml
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement