RSS Forums RSS
Please support our C# advertiser: Programming Forums
Views: 12095 | Replies: 3
Reply
Join Date: May 2005
Posts: 5
Reputation: c#bird is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
c#bird c#bird is offline Offline
Newbie Poster

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

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2003
Location: Bamberg, Germany
Posts: 117
Reputation: Iron_Cross is an unknown quantity at this point 
Rep Power: 6
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?

  #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  
Join Date: Feb 2005
Location: Ballarat, Australia
Posts: 175
Reputation: Paul.Esson is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 8
Paul.Esson's Avatar
Paul.Esson Paul.Esson is offline Offline
Junior Poster

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

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

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

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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:33 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC