D
D
Dokuro2015-09-30 11:11:44
linux
Dokuro, 2015-09-30 11:11:44

putty. Does the process stop when it closes?

I start a certain process on the server via SSH via putty.
But when I close putty the process stops.
I haven't used putty for a long time, but I remember it was necessary to click something ... Just what?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2015-09-30
Chan @iDokuro

1. If the connection is broken, a SIGHUP signal is sent to the process, which means "the phone is hung up, the connection with the terminal is broken, it's time to end."
To prevent, use the nohup command, which blocks this signal, and when the connection is broken, it continues to emulate the terminal, saving all output to the "screen" in the file nohup.out
2. use the screen or tmux screen managers, which initially save the session, even if the connection is broken , and you can reconnect to restore the session.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question