Then it's a CGI issue, and not a Perl issue. Your server
sets up a different environment (variables, UID, permissions,
limits) than you have from the command line. At least one
of these differences prohibits your exe file to behave
differently.
Abigail