All my data is on the server. How to run the model on server even after disconnecting the system. As i have huge data it takes min of 10 hrs to train the model.
Asked
Active
Viewed 854 times
0
-
If i understand, you run a local script using the data on the server. Maybe you can try to execute a server-side script to train your model. – Baptiste Pouthier Jul 30 '19 at 09:42
-
Possible duplicate of [Killing ssh session kills running process](https://stackoverflow.com/questions/13546651/killing-ssh-session-kills-running-process) – DavidW Jul 30 '19 at 10:08
-
I'm sure there's other duplicates too... – DavidW Jul 30 '19 at 10:08
-
https://unix.stackexchange.com/questions/4004/how-can-i-run-a-command-which-will-survive-terminal-close https://unix.stackexchange.com/questions/222307/preventing-terminal-disconnection-from-killing-a-running-job-in-zsh https://stackoverflow.com/questions/285015/in-linux-how-to-prevent-a-background-process-from-being-stopped-after-closing-s – DavidW Jul 30 '19 at 10:11
1 Answers
2
If you can run your script on the server, it is enough to run it with nohup and add an '&' at the end.
For ex: nohup python file.py &
.
This will run the process in the background and also it won't be attached to your current ssh session.
To ensure it's running, you can do a ps -aux
command and search for it.
Also all logs will go to a file nohup.out.

arcticless
- 664
- 5
- 14