Solved

Executing remote CGI's

Posted on 1998-11-05
2
207 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
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…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

632 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