Execute batch script on remote computer
py
codecraig at gmail.com
Mon Feb 13 10:53:50 EST 2006
I am trying to execute a batch script on a remote computer.
The batch script looks like:
@echo off
start c:\python24\python.exe c:\a_script.py
Here's the setup:
Computer A (my computer), Computer B (the remote computer).
So I map "W:" to Computer B and then copy the batch script to Computer
B. Then from within Python on Computer A I run:
import subprocess
subprocess.Popen("W:\\foo.bat")
However, when it runs it says it can't find c:\a_script.py. It seems
to be trying to look
at Computer A, not Computer B. How can I do this?
Thanks
More information about the Python-list
mailing list