I am trying get HM to recognize the response from a perl script. I am using the External Program test, and it gives me an option to recognize error level. What is the syntax for the error level?
I can have my script return whatever is necessary, but I would really love to see a test that compares the string returned by the script or a program to a given.
How do I do that?
External Program error levels
My script is in Perl. The Script test only understands VBScript or JScript.
I am ok with just the error level if I was to use the External program test, I just need to know what the syntax of the error level is, so I can have my script return the error levels.
The bigger picture is that I really need a File Test that accomodates what I need. I need to find the log files that have been generated within today and I need to look for a certain string in them. Your File Test does not have the modified date specified, so I cannot use it. Your Script test does not do Perl, so I cannot use it. I am left with the External Program Test...
Capice?
I am ok with just the error level if I was to use the External program test, I just need to know what the syntax of the error level is, so I can have my script return the error levels.
The bigger picture is that I really need a File Test that accomodates what I need. I need to find the log files that have been generated within today and I need to look for a certain string in them. Your File Test does not have the modified date specified, so I cannot use it. Your Script test does not do Perl, so I cannot use it. I am left with the External Program Test...
Capice?
>My script is in Perl. The Script test only understands VBScript or JScript.
There is quote from manual:
---------------------------
The scripting engine is the COM object that actually processes the scripts, e.g. VBScript, JScript, etc. These COM objects are usually provided by a third party (in the case of VBScript it's provided by Microsoft). On Windows 2000/XP VBScript and Jscript installed by default, also you can download and install additional script languages. If you have old version of Windows or if you want to use another script language, follow links can be useful for you:
- Visual Basic Script (VBScript) and Java Script (Jscript) for Windows 98, ME, NT 4.0, 2000 are available at http://msdn.microsoft.com/scripting
- Perl is available from http://www.activestate.com
- Python is available at the same site http://www.activestate.com
- Haskell is available at http://www.haskell.org/haskellscript
Of course we don't know about all script languages available on the Internet, these are just the most popular that we know about
---------------------------
>I am ok with just the error level if I was to use the External program test, I just need to know what the syntax of the error level is, so I can have my script return the error levels.
Sorry, I don't know Perl, I cannot answer to this question. Try to post this question into some Perl related forum. http://www.perl.org/
Regards
Alex
There is quote from manual:
---------------------------
The scripting engine is the COM object that actually processes the scripts, e.g. VBScript, JScript, etc. These COM objects are usually provided by a third party (in the case of VBScript it's provided by Microsoft). On Windows 2000/XP VBScript and Jscript installed by default, also you can download and install additional script languages. If you have old version of Windows or if you want to use another script language, follow links can be useful for you:
- Visual Basic Script (VBScript) and Java Script (Jscript) for Windows 98, ME, NT 4.0, 2000 are available at http://msdn.microsoft.com/scripting
- Perl is available from http://www.activestate.com
- Python is available at the same site http://www.activestate.com
- Haskell is available at http://www.haskell.org/haskellscript
Of course we don't know about all script languages available on the Internet, these are just the most popular that we know about
---------------------------
>I am ok with just the error level if I was to use the External program test, I just need to know what the syntax of the error level is, so I can have my script return the error levels.
Sorry, I don't know Perl, I cannot answer to this question. Try to post this question into some Perl related forum. http://www.perl.org/
Regards
Alex