0

I have a server, and control it via ssh. I am using Windows PowerShell.

  1. So I first connect to the server and run my python script in background with

    python3 -m PKG &
    

    If I use jobs or ps, I can clearly see that it's running ok.

  2. Then if I exit this connection and start another one to the same server again, now, if I use ps or jobs I 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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.