zergling Posted October 5, 2006 Share Posted October 5, 2006 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 Link to comment Share on other sites More sharing options...
AzKay Posted October 5, 2006 Share Posted October 5, 2006 I dont understand, from a server? # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
zergling Posted October 5, 2006 Author Share Posted October 5, 2006 I meant from windows UNC path or network resources. -zerg Link to comment Share on other sites More sharing options...
AzKay Posted October 5, 2006 Share Posted October 5, 2006 Well, I guess ill back off, I have no idea what they are. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
zergling Posted October 5, 2006 Author Share Posted October 5, 2006 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") Link to comment Share on other sites More sharing options...
AzKay Posted October 5, 2006 Share Posted October 5, 2006 I Have no idea what that is though, All I can say, is, when you run it, put it this way. What program do you use, to run the scripts manually? is there an exe? # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
dabus Posted October 5, 2006 Share Posted October 5, 2006 (edited) 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 October 5, 2006 by dabus Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now