I'm writing a python code to launch a service in the remote server in background, which means the code does not wait until the process is done (its represent the server)
My code now is:
server_session = paramiko.SSHClient()
server_session.set_missing_host_key_policy(paramiko.AutoAddPolicy())
server_session.connect(SERVER[0], username=SERVER[1], password=SERVER[2])
server_session.exec_command('pkill python')
time.sleep(5)
server_session.exec_command(SERVER[3])
the exec_command does not do the job Thanks in advance