Title: Message
Hello, I don't know why that doesn't work -- I even looked back at a script I wrote (and which still works) and it does use the backticks, and it does get output from it, yet when I try an example as below, it does not!
 
Anybody have a good explanation for that????? I don't.
 
--Jon
 

-----Original Message-----
From: Mario R. Sanchez [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 12:13 PM
To: Jon Jaques; [EMAIL PROTECTED]
Subject: Re: executables under windows

thank you. when i use $mystuff = `c:\hello.exe` (using the back ticks) nothing happens. when i use the quotes in this same format, naturally the text is displayed. when i use system('c:\hello.exe'), the return code (of zero) is displayed. when i use system('c:\exethatdoesnotexist.exe') the return code (of 256) is displayed. please keep in mind that all of this is through the browser.

thank you so much for your helps. any thoughts?

Jon Jaques wrote:

 remember that we're using BACK ticks, ie the key to the left of number one on your keyboard, usually under the tilde. Not to be confused with regular single or double quotes.--Jon
-----Original Message-----
From: Mario R. Sanchez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 05, 2003 10:25 AM
To: Jon
Subject: Re: executables under windows
 
hi jon

when i do what you suggest, what displays is "C:\hello.exe" and not the output from hello.exe

maybe i am doing something really wrong.

thanks
mario

Jon wrote:

 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