Jump to content
Sign in to follow this  
zergling

Run script from server

Recommended Posts

zergling

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
AzKay

I dont understand, from a server?


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites
zergling

I meant from windows UNC path or network resources.

-zerg

Share this post


Link to post
Share on other sites
AzKay

Well, I guess ill back off, I have no idea what they are.


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites
zergling

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
AzKay

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- #

Share this post


Link to post
Share on other sites
dabus

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  

×