Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Executing remote CGI's

Posted on 1998-11-05
2
Medium Priority
?
214 Views
Last Modified: 2013-12-25
Hi,
I have to update 5 sites daily with the same info:
Max temp, min temp. Dollar, etc. etc.
I wrote 6 little program in C which print out a string.
If I call these scripts locally there is no prob.
I use <!--#exec cgi="/cgi-bin/daily/dollar" -->
and get "460.52"

Can they be executed from a remote server? If I try to execute them as
<!--#exec cgi="http://www.santiago.cl/cgi-bin/daily/dollar" -->
I get:  [an error occurred while processing this directive]
If I go directly to http://www.santiago.cl/cgi-bin/daily/dollar I also get the number expected.

The servers from which I am trying to execute them from are NT and unix.

Is there any way that I can execute these remote CGi's from within the HTML/ASP files?

Thanks for your help.

Marcelo
0
Comment
Question by:sinner052397
2 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 1829444
You will need to use a socket connection if you want a server program to call them. This will not be HTML (or ASP - unless somebody has a socket interface for ASP - one never knows) Have a look around for this in your favorite language (thre are tons of socket examples out there...)

Michel
0
 

Accepted Solution

by:
Eck earned 200 total points
ID: 1829445
if files (.html, or otherwise) have to be update on th 5 'clone' servers A quick & dirty way to do this is with rcp(1).
Just create the 'master .html'  then do the shell command:

'rcp master.html login@myhost1.com:/webdir'

for each of the 5 hosts you have to update.

Dirty, kinda nsucure and ulgy... but quick:]


0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to count occurrences of each item in an array.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question