943,697 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 22680
  • C# RSS
May 30th, 2005
0

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

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
c#bird is offline Offline
5 posts
since May 2005
Jun 14th, 2005
0

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

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.
Reputation Points: 46
Solved Threads: 2
Junior Poster
Iron_Cross is offline Offline
117 posts
since Jul 2003
Jun 14th, 2005
0

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

Or perhaps use Perl .NET for the perl part ?

http://aspn.activestate.com/ASPN/NET
Reputation Points: 21
Solved Threads: 10
Junior Poster
Paul.Esson is offline Offline
181 posts
since Feb 2005
Jan 12th, 2006
0

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

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#!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
str_kani is offline Offline
1 posts
since Jan 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Requesting Debugging Knowledge
Next Thread in C# Forum Timeline: Converting a long to an Enum Value





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC