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
Post a Comment