> $arg1="userid"; > $arg2="password"; > @args = ("C:\\perlcode\\validate.exe","$arg1","$arg2"); > system(@args);
This system() call is most likely not using the shell. > $exit_value = $? >> 8; > $signal_num = $? & 127; > $dumped_core = $? & 128; > print "$exit_value, $signal_num, $dumped_core\n"; > ..... > > validate.exe is the C executable, that validates the > credentials against a database on some other machine. > When called from IIS, system call never makes it to the > validate.exe. $exit_value is 128 (instead of 0). I'll bet that IIS uses cmd.exe somewhere and that it is messing up the return value. Are you 100% sure it's NOT running validate.exe? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>