I have a server, and control it via
ssh. I am using Windows PowerShell.
So I first connect to the server and run my python script in background with
python3 -m PKG &
If I use
ps, I can clearly see that it's running ok.
Then if I exit this connection and start another one to the same server again, now, if I use
jobsI get nothing. Therefore I can kill my python process only if I remember its PID on the first session.
Is there any way to avoid this?