Ask a Question related to ASP.NET General, Design and Development.
-
Titof #1
Running a Perl Script in ASP.NET
Hello,
i want to create an active webpage that displays the
status of users quotas on a volume of a server.
I installed IIS on this server and installed Win2k server
Resource Kit because the Perl script "DiskQuotas.pl"
exactly doing what i want.
I created a function (see below) that running the script
in a dos-command mode... BUT nothing happens :((
please help me
My asp.net function is :
Private sub page_load(....)
'First time, i tried this
Label2.Text = ExecuteApp("c:\perl\bin\perl.exe_
c:\perl\diskquotas.pl -query -format csv e:_'Second time..... i put the entire command line in a bat>c:\report\Quotas.csv")
file
Label2.Text = ExecuteApp("C:\quotas.bat")
end sub
Public Function ExecuteApp(ByVal cmd As String) As String
Dim output As String
Dim errors As String
'create a tempfilecollection for output and error messages
Dim tf As New System.CodeDom.Compiler.TempFileCollection
'execute the command
System.CodeDom.Compiler.Executor.ExecWaitWithCaptu re(cmd,
tf, output, errors)
'read the file with the output of the command and return
its content
Dim sr As System.IO.StreamReader = System.IO.File.OpenText
(output)
ExecuteApp = sr.ReadToEnd
sr.Close()
'Delete the temporary files
System.IO.File.Delete(output)
System.IO.File.Delete(errors)
End Function
Titof Guest
-
running sql scripts from perl script
I am not sure if this probleem is primarily perl or MySQL, so I'll try here first. With any luck, there is someone else here who uses perl to run... -
Control a non-perl image viewer from perl script
Below is a (non-finished) script that trys to run a linux viewer called eog (eye of gnome) in a script that will eventually allow me to power thru... -
perl not running correctly
Scott Blankenship wrote: Nothing is wrong with Perl, but unlike in MSDOS ".", isn't usually if the $PATH. You have to reference the file with... -
Perl script not running properly...
Hi, I wrote a CGI script in Perl(see below) and when I execute ./ in Unix console it works just fine. However, when I use it in an html page it... -
Execute shell script from a perl script
Hi, How can I executed a Unix shell script from a Perl script. The shell script is a dump of a oracle table to a file. The perl script is for...



Reply With Quote

