Re: Executing scripts using C#

From: cody (no_spam_deutronium_at_gmx.net)
Date: 05/26/04


Date: Wed, 26 May 2004 15:12:36 +0200

You can simply call the Perl interpreter from your program and pass the *.pl
files you want to execute as parameter. Then you can simply intercept the
output of the process and use it as you want.

--
cody
Freeware Tools, Games and Humour
http://www.deutronium.de.vu  || http://www.deutronium.tk
"Vinay" <anonymous@discussions.microsoft.com> schrieb im Newsbeitrag
news:BFD95A6F-D97C-4C0F-970F-CB9E2CB7006A@microsoft.com...
> Hi,
> For some reason I have to execute perl/vbscripts from my C# code.Currently
I do have .pl files which I am executing using Process class in C#. But
these scripts are becoming unmanagable. SO can I embed these scripts in my
.cs files with some block as <Script> like we do in HTML?
> For Example,
> Sample.cs
>
> public class CSharpClass
> {
> public invokeScript
> {
> }
> public void invokeScript()
> {
> [SCript : Perl]
> //Perl code
> [SCript : Perl]
>
> }
> }
>
> TIA,
> Vinay


Relevant Pages

  • Re: New Application Extension reports 404
    ... You actually want .RUN to be handled by Perl, ... please add a Web Service Extension ... /command1.run will execute Perl script1.pl ... but IIS4 had the "RUN" extension mapped to execute a predefined perl script. ...
    (microsoft.public.inetserver.iis)
  • Re: Talk about text files and embedded malware...
    ... | ASCII characters only. ... | script or VBS script)? ... Say a file called "bad.txt" contains some perl script. ... user double-clicking a bad file will execute some code? ...
    (alt.comp.anti-virus)
  • Re: Linux
    ... You almost certainly have Perl already installed. ... But the actual command line interpreter should be the same between them. ... put the shebang line as the first line of the script. ... You can then execute the program ...
    (perl.beginners)
  • Re: Memory: measuring 5 limitations
    ... >> This will give you information about the execution of the script. ... > Yeah I have shell access and I can execute the time command. ... If you can execute your script *without* typing in perl at the ...
    (comp.lang.perl.misc)
  • Executing scripts using C#
    ... [SCript : Perl] ... TIA, ...
    (microsoft.public.dotnet.languages.csharp)