Execute Python function on remote machine -


i have requirement need execute python (version 2.7) function on remote machine. able execute locally using following on windows command prompt. python file present in test folder on d drive.

"d:\python27\ipy.exe" -c "import sys; sys.path.append('d:\\test'); import py1;py1.multiply(5,100)" 

i tried similar way execute function on remote machine giving error “file –c not exist”. py1 present in shared folder , python exe present in shared folder.

"\\remotemachinename\python\ipy64.exe" –c "import sys; sys.path.append(‘\\remotemachinename\shared’); import py1;py1.multiply(5,100)" 

below script content.

import sys def multiply(a,b):   print(a*b) 

please provide pointers run this.


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -