I think I usually use "back ticks", like this:
 
$mystuff = `C:\hello.exe`;
 
Notice also I specified the path to the executable, as the server might not find it otherwise.
 
HTH,
 
--Jon
----- Original Message -----
Sent: Monday, August 04, 2003 7:41 PM
Subject: Re: executables under windows

Hi,

Yes I can - any .pl will work well in the browser - as long as the calling of these .exe is not included.

Thanks
Mario

Mingbo_Wan wrote:

Can you run other .pl files from browser?

Mingbo

-----Original Message-----
From: Mario R. Sanchez [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 04, 2003 10:25 PM
To: [EMAIL PROTECTED]
Subject: Re: executables under windows

Hi 

Thank you for your responses. I'm a novice at this so apologies for not including the code. Here it is: 

# Program name:  hello.pl
print "Content-type: text/html\n\n";
print "<HTML><HEAD><TITLE> CGI/Perl First Try</TITLE></HEAD>\n";
print "<BODY BGCOLOR=Black TEXT=White>\n";
print "<H1><CENTER> Hello, World! </CENTER></H1>\n";
$mystuff = system(hello);
print "$mystuff\n";
print "</H2></BODY></HTML>\n"; 

In the command prompt, this works fine - obviously even displaying the <H1>, etc.. >From a browser absolutely nothing - eventually timing out. The two .exe are in the same directory as where the .pl is. 

Any ideas? 

Thank you so much,
Mario 

"Messenger, Mark" wrote: 

Show us your code, and we should be able to point you in the right direction :)

-----Original Message-----
From: Mario R. Sanchez [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 03, 2003 9:46 PM
To: [EMAIL PROTECTED]
Subject: executables under windows

Hello,

In a legacy development environment, a simple 'hello world' .exe needs a
companion .exe to run. calling the hello_world.exe from perl (using
system(hello_world) or my $ipstuff = `hello_world`; print($ipstuff);)
work great from the dos prompt - hence the companion .exe is being
called properly automatically.

when i try doing the same thing as a cgi script from a browser, nothing
ever happens - no matter where i put these two files.

any suggestion how i can get these combo .exe's to work from a browser?

thanks!

mario sanchez

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to