How to call a perl script in the C# app?

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2005
Posts: 5
Reputation: c#bird is an unknown quantity at this point 
Solved Threads: 0
c#bird c#bird is offline Offline
Newbie Poster

How to call a perl script in the C# app?

 
0
  #1
May 30th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Jul 2003
Posts: 117
Reputation: Iron_Cross is an unknown quantity at this point 
Solved Threads: 2
Iron_Cross's Avatar
Iron_Cross Iron_Cross is offline Offline
Junior Poster

Re: How to call a perl script in the C# app?

 
0
  #2
Jun 14th, 2005
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.
elitehackers.info
Today's Penny-Arcade!
Pain is weakness leaving the body!
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 181
Reputation: Paul.Esson is an unknown quantity at this point 
Solved Threads: 10
Paul.Esson's Avatar
Paul.Esson Paul.Esson is offline Offline
Junior Poster

Re: How to call a perl script in the C# app?

 
0
  #3
Jun 14th, 2005
Or perhaps use Perl .NET for the perl part ?

http://aspn.activestate.com/ASPN/NET
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 1
Reputation: str_kani is an unknown quantity at this point 
Solved Threads: 0
str_kani str_kani is offline Offline
Newbie Poster

Re: How to call a perl script in the C# app?

 
0
  #4
Jan 12th, 2006
I like to call a perl function, that accepts one paramer and return a value... can you please tell me how can i call a function inside a perl file to do this? and get the returned values in c#....

i would like to call a perl function from c# and receive the value in c#!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC