M
M
Maxim Konishchev2020-07-31 11:56:33
linux
Maxim Konishchev, 2020-07-31 11:56:33

Will the process continue running after the SSH connection is terminated?

Hello, I'm an inexperienced Linux user. I work with the server remotely (on my Windows machine) via SSH. I upload the database on the server (the database is large - a long process). The connection with the server is lost during the filling process. For some, this may be a ridiculous question, but still: will the operation of filling the database (from the same server) be interrupted at the moment when my computer's connection with the server is interrupted. If not interrupted - how can I see the result of the operation? Thanks in advance, pluses to the authors are guaranteed.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
S
Saboteur, 2020-07-31
@Max1303

Read about the nohup or screen / tmux commands.
They just allow you to start a process on a remote machine so that if the connection to the remote machine is interrupted, the process running there will not be interrupted.

B
Belfigor, 2020-07-31
@AdminGuide

If you directly upload the database from your computer, then yes, it will be interrupted
. If you connect to the server via SSH and download this database from some external source, for example, using wget, then no. Regardless of what happens to your computer, the server will continue to quietly download the file from an external source.

D
Dmitry Belyaev, 2020-07-31
@bingo347

Tmux to help you

A
AVKor, 2020-07-31
@AVKor

No (answer to the question in the title). Yes (answer to the question from the text of the question).

U
unseriously, 2020-07-31
@unseriously

I do not know how you connect, most likely through Putty. There is also such a programm as MobaXterm - it is intended for the same purposes. So there are a lot of goodies in it, maybe it has the tools mentioned above like tmux and the rest.

O
Oleg Shulepov, 2020-08-05
@neuro

It is good to run this type of work through screen or a more modern version - tmux, as Dmitry Belyaev advised above

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question