All Questions

Tagged with
Filter by
Sorted by
Tagged with
16
votes
7answers
15k views

Why does my Python background process end when SSH session is terminated?

I have a bash script that starts up a python3 script (let's call it startup.sh), with the key line: nohup python3 -u <script> & When I ssh in directly and call this script, the python ...
3
votes
1answer
2k views

View script output over ssh in real time

I am trying to run a local script on a remote machine with ssh. Let's say this is the python script (printdelay.py) which I am trying to run: from time import sleep print("The first line") sleep(...