Keep running process after ssh logout

Language, region, time zone, power, navigation, notification and more.
Locked
User avatar
fabiobiscia
Posts: 24
Joined: 08 Jan 2021, 08:28

Keep running process after ssh logout

Post by fabiobiscia »

Hi everyone. I have a python script which is supposed to run tasks on background. From my TOS web GUI I was unable to start the .py script so I did it from the SSH terminal. Unfortunately, however, if I log out of the SSH session, or the computer switches off, the process crashes. Is there a way to start a process and leave it running on background after SSH logout? Thanks
User avatar
outkastm
Gold Member
Posts: 1425
Joined: 29 Dec 2020, 23:52

Re: Keep running process after ssh logout

Post by outkastm »

You have different options, appending & after the command, or using either nohup or screen commands
Locked

Return to “System Configuration”