| | |
How to call a perl script in the C# app?
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2005
Posts: 5
Reputation:
Solved Threads: 0
Hi,
I want to know how to call a perl script in C# app and how to communicate between the app and this script. for example, how does the C# app know if the perl script has finished running? could the app get the return code from the perl script? could the perl script send some info to the app when it is running?
Thanks
I want to know how to call a perl script in C# app and how to communicate between the app and this script. for example, how does the C# app know if the perl script has finished running? could the app get the return code from the perl script? could the perl script send some info to the app when it is running?
Thanks
You could use the Process or ProcessStartInfo classes to call the perl.exe process with the argument being the script.
Then you could use the properties of said classes to see if the script is still running. To actually get info from it, you're probably going to have to write the info to a file then read that file from the C# app when the perl.exe process has finished running.
Then you could use the properties of said classes to see if the script is still running. To actually get info from it, you're probably going to have to write the info to a file then read that file from the C# app when the perl.exe process has finished running.
![]() |
Similar Threads
- Calling one Perl script from another - HELP!!! (Perl)
- I get the error no file or directory when i try to run a perl script (Perl)
- how do i call an .exe file from perl script (Perl)
- On execution of perl script, popup asks if i want to save or run this file (Linux Servers and Apache)
- Calculate the amount of time in the linux process using perl script (Perl)
Other Threads in the C# Forum
- Previous Thread: Requesting Debugging Knowledge
- Next Thread: Converting a long to an Enum Value
| Thread Tools | Search this Thread |
.net access ado.net algorithm array backup barchart bitmap box broadcast buttons c# check checkbox client clock color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing dynamiccreation encryption enum event excel file files form format forms function game gdi+ httpwebrequest image index input install interface java label list listbox listener mandelbrot math microsystems mouseclick mysql operator password path photoshop picturebox pixelinversion post programming property radians regex remote remoting richtextbox serialization server sleep soap socket sql statistics stream string table tcp text textbox thread time timer update usercontrol validation visualstudio webbrowser windows winforms wpf write xml





