简体   繁体   中英

How to run a Python script remotely

We run many Python scripts for data processing tasks. We have a modeling computer that has been upgraded to provide the best performance for these tasks, but it is shared by many people that all need to run different scripts on it at the same time.

Is it possible for me to run a Python script remotely on that machine from my laptop while others are either directly logged into it or also remotely running a script?

Is SSH a possibility? I haven't ever run any scripts remotely aside from logging in via remote desktop. Ideally, I could start the Python script on that remote machine, but all the messages would be visible to me on my laptop. Does this sound doable?

EDIT:

I forgot to mention all machines are running Windows 7.

SSH is definitely the way to go and also have a look at Fabric .

Regarding your edit. You can use Fabric on Windows . And I think that using SSH on Windows will be a bit easier than dancing with their Powershell's remoting capabilities .

SSH does seem like it should meet your needs.

You could also consider setting up an iPython notebook server that everyone could use.

Its got nice parallel processing capabilities if you are doing some serious number crunching.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM