Hi,

What did you mean by: 
> This system() call is most likely not using the shell.

validate.exe checks for arguments and prints the usage
in the log file. From IIS nothing is written in the log
file and this being the first thing validate.exe does
.....

Atul

On Tue, 6 Jan 2004 11:19:42 -0800, "Bakken, Luke" wrote:

> 
> > $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>

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to