Results 1 to 3 of 3
Related
-
Perl Script running - No output - third party software Forum: HTML Forum
Replies: 0 -
Execute external program in perl/cgi Forum: CGI Perl Forum
Replies: 2 -
Running a batch script file from Perl CGI Forum: CGI Perl Forum
Replies: 0 -
Running shell commands from Perl Forum: CGI Perl Forum
Replies: 1 -
I am running a *ree online perl workshop Forum: CGI Perl Forum
Replies: 2
-
08-11-2008, 10:43 AM #1
Running external program from CGI/Perl
Hi all,
I'm from Java and new to perl. I'd like to call from computer A a program on computer B, so to avoid any firewall or network settings, I decided to use port 80 and have an Apache server sitting on computer B that will get an HTTP request from A and run the program.
So I started learning cgi scripting with Perl and I can get computer A to call basic commands on computer B like "dir" ...
But when I do something more complex, like calling a prog.exe, the web page hangs, the prog.exe process is visible in the computer B task manager and nothing happens.
Any advise is welcome
Thanks a lot
-
09-17-2008, 09:47 AM #2
Re: Running external program from CGI/Perl
The problem lies in teh program on computer B.
Using an http request is just like accessing computer B with your browser. It is a good way to distribute resources without using NFS.
I use the same process with a javascript call for my automotive webfeeds so webmasters can call searches from my main database.
If the program is hanging then there is an error in the program itself. Try accessing the program directly with a browser and see what happens.
You should get the same result.
You will need to find the error in the program.Last edited by HTML; 09-17-2008 at 09:51 AM.
-
01-03-2009, 12:47 PM #3
Re: Running external program from CGI/Perl
If you still have a problem I suggest you post your code
Chris
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum