I need to connect from a Windows machine to a remote Linux server and execute a Perl script. I've tried using
command = "perl /usr/local/xfer/file.pl -ssh root@"+hostname+" -pw password -batch"
pid = subprocess.Popen(command, shell=True)
but it tells me Can't open perl script "usr/local/xfer/file.pl'": No such file or directory.
What am I doing wrong here, and how can I get it to work?