I have a python file "run.py" like below on my remote server.
import subprocess
subprocess.Popen(["nohup", "python", "/home/admin/Packet/application.py", "&"])
I want to run that file from my local computer using SSH. I'm trying like the below. However, my local terminal got stuck there. It seems it isn't being run in the background.
ssh -n -f -i /Users/aws/aws.pem admin@hello_world.com 'python /home/admin/run.py'
After running that command, my terminal got stuck.
nohup python /home/admin/Packet/application.py &?&nor>&are special, because list argument is not passed through shell.