Jump to content
Sign in to follow this  
zergling

Run script from server

Recommended Posts

I'm trying to execute a python script to generate output.

Which command and /or how to Run (execute) scripts from server?

i.e.

Run("\\server\path1\path2\python_script.py arg1", "",@WorkingDir)

Thanks,

Zergling

Share this post


Link to post
Share on other sites

Oh, please don't...

I'm trying to Run a command that executes a python script from a Windows Share.

Run("\\MyServer\MyShare script.py")

Share this post


Link to post
Share on other sites

Shure. Python is an interpreter like perl or ruby, so

Run('"Put your local python-executable here" "\\server\path1\path2\python_script.py" arg1', "", @WindowsDir)

should do it. You could also use @Comspec and start to use the default app..

Edited by dabus

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...