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
Solved

Executing remote CGI's

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

856 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