![]() |
![]() |
[ Bottom of Page | Previous Page | Next Page | Contents | Index ]
The following methods help you to express functions for tracing activity.
Object.Trace(LogLevel As Integer, Message As String)
Object.GetInterp()As String
Object.Shell(shell As String) As String
perl myperl.plThe launched process must return within 60 seconds, otherwise an error generates.
Object.GetShellStdOut() As String
Object.GetShellStdErr() As String
Object.GetShellRetCode() As Integer
Visual Basic example: | |
Dim interp As String interp = Svc.GetInterp() Svc.Trace(3, "interp: " + interp) Dim out As String out = Svc.Shell("perl myScript.pl") Svc.Trace(3, "first line of output: " + out) out = Svc.GetShellStdOut() Svc.Trace(3, "std output: " + out) out = Svc.GetShellStdErr() Svc.Trace(3, "std err: " + out) Dim retCode As Integer retCode = Svc.GetShellRetCode() Svc.Trace(3, "return code: " + retCode) |
|
JavaScript example: | |
var interp; interp = Svc.GetInterp(); Svc.Trace(3, "interp: " + interp); var out; out = Svc.Shell("perl myScript.pl"); Svc.Trace(3, "first line of output: " + out); out = Svc.GetShellStdOut(); Svc.Trace(3, "std output: " + out); out = Svc.GetShellStdErr(); Svc.Trace(3, "std err: " + out); var retCode; retCode = Svc.GetShellRetCode(); Svc.Trace(3, "return code: " + retCode); |
[ Top of Page | Previous Page | Next Page | Contents | Index ]