Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 23, 2010 03:08 AM by aditya1986
Member
14 Points
11 Posts
Jul 22, 2010 07:39 PM|LINK
I'm trying to find a way (if there is one) to call a python script from an asp page. So far I've never found a way to call an executable from within an asp page (python.exe). Am I wrong on this? Does anyone know how this might be accomplished?
Thanks
312 Points
36 Posts
Jul 23, 2010 02:56 AM|LINK
You can probably do something like this just make sure the account that runs the thread have permission to reach and execute the exe file.
ProcessStartInfo startInfo = new ProcessStartInfo("Python.exe"); startInfo.WindowStyle = ProcessWindowStyle.Minimized; Process.Start(startInfo); startInfo.Arguments = "Parameters";
For more information, you can take a look at http://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.aspx
Contributor
4168 Points
759 Posts
Jul 23, 2010 03:08 AM|LINK
nasman python script from an asp page
refer http://wiki.imacros.net/Sample_Code#Python
http://wiki.imacros.net/CSharp
http://www.velocityreviews.com/forums/t394983-how-to-execute-a-python-script-in-net-application.html
nasman
Member
14 Points
11 Posts
Call python script
Jul 22, 2010 07:39 PM|LINK
I'm trying to find a way (if there is one) to call a python script from an asp page. So far I've never found a way to call an executable from within an asp page (python.exe). Am I wrong on this? Does anyone know how this might be accomplished?
Thanks
Matthew T
Member
312 Points
36 Posts
Re: Call python script
Jul 23, 2010 02:56 AM|LINK
You can probably do something like this just make sure the account that runs the thread have permission to reach and execute the exe file.
ProcessStartInfo startInfo = new ProcessStartInfo("Python.exe"); startInfo.WindowStyle = ProcessWindowStyle.Minimized; Process.Start(startInfo); startInfo.Arguments = "Parameters";For more information, you can take a look at http://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.aspx
aditya1986
Contributor
4168 Points
759 Posts
Re: Call python script
Jul 23, 2010 03:08 AM|LINK
refer http://wiki.imacros.net/Sample_Code#Python
http://wiki.imacros.net/CSharp
http://www.velocityreviews.com/forums/t394983-how-to-execute-a-python-script-in-net-application.html