in reply to Re: WScript Win32
in thread WScript
Thanks for your responses before. I have tried to gather some more information so that I can change the question into something more intelligent:-)
Basically if i run the following two tests from the command line:
*********TEST1**********
cscript //E:PerlScript c:\"Perl Code"\test1.pl
#code from test1.pl
print "Hello";
WScript->Quit(2)
I will receive the following output.
Hello
(check error code)
c:\ echo %ERRORLEVEL%
2 (Response)
*********TEST2**********
cscript //E:PerlScript c:\"Perl Code"\test2.pl
code from test2.pl is shown in original post
I will receive the following output:
Message: Success
Statistic: 0
Server Teminated Script.
(check error code)
c:\ echo %ERRORLEVEL%
-1073741785 (response)
*******************************
So then my question is what causes the script to terminate with that error code. From what I can see if i remove the statements which refer to the sub modules within radius.pm the script does not return that error code. Im sure i am doing something obviously wrong. Does anyone know what I should be doing.
Kind Regards
Miron
|
|---|