Solved

Executing remote CGI's

Posted on 1998-11-05
2
204 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 100 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

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn how to dynamically set the form action using jQuery.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

752 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