Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Remote File Access via CGI

1 view
Skip to first unread message

Steve Rodgers

unread,
Nov 23, 2002, 1:16:09 AM11/23/02
to
I am in a bit of a pickle, I am trying to find a way to get my programs
on one server to interact with files on another server. I am just not
sure how to call the files... Typically I would use "open" but, I need
to know how to translate this into a path to the file server.... Any
ideas would be GREATLY APPRICEATED... Thanks for any help you could
offer.

--
PLEASE NOTE: comp.infosystems.www.authoring.cgi is a
SELF-MODERATED newsgroup. aa.net and boutell.com are
NOT the originators of the articles and are NOT responsible
for their content.

HOW TO POST to comp.infosystems.www.authoring.cgi:
http://www.thinkspot.net/ciwac/howtopost.html

Vorxion

unread,
Nov 23, 2002, 2:15:24 AM11/23/02
to
In article <MPG.183b9c00d...@free.teranews.com>, Steve Rodgers wrote:
>I am in a bit of a pickle, I am trying to find a way to get my programs
>on one server to interact with files on another server. I am just not
>sure how to call the files... Typically I would use "open" but, I need
>to know how to translate this into a path to the file server.... Any
>ideas would be GREATLY APPRICEATED... Thanks for any help you could
>offer.

What kind of interaction are you specifically looking for? You say open()
so are you just wanting to read a file from the remote server, or...?

A request like this requires a bit more detail to get an answer of any
substance...

--
Vorxion - Member of The Vortexa Elite

Lueko Willms

unread,
Nov 23, 2002, 1:31:00 AM11/23/02
to
Am 23.11.02
schrieb lbl...@comcast.net (Steve Rodgers)
auf /DE/COMM/INFOSYSTEMS/WWW/AUTHORING/CGI
in MPG.183b9c00d...@free.teranews.com
ueber Remote File Access via CGI

SR> I am in a bit of a pickle, I am trying to find a way to get my
SR> programs on one server to interact with files on another server.

I just know that PHP can do that out of the box.

Lüko Willms http://www.mlwerke.de
/--------- L.WI...@jpberlin.de -- Alle Rechte vorbehalten --

"Das Volk, das ein anderes Volk unterjocht, schmiedet seine eigenen
Ketten." - Karl Marx (1. Januar 1870)

Kent Boortz

unread,
Nov 23, 2002, 6:11:40 AM11/23/02
to

Steve Rodgers <lbl...@comcast.net> writes:
> I am in a bit of a pickle, I am trying to find a way to get my programs
> on one server to interact with files on another server. I am just not
> sure how to call the files... Typically I would use "open" but, I need
> to know how to translate this into a path to the file server.... Any
> ideas would be GREATLY APPRICEATED... Thanks for any help you could
> offer.

It is in most cases alot harder than just "open" a file

- If the other server is on the same local network you may share
a directory using NFS or some other form of file sharing. You still
have problem if the file is used from both servers, you may have
to lock it somehow.

- If you can't share disk you can copy the file over using protocols
like rcp, ftp, or http and when the update is done copy it back.

- If you have http access to the other machine you can write CGI
scripts hosted on the other server to edit the file there. These
CGI scripts are only for internal use, i.e. to be called from
the CGI script on the first server. From perl you can use the LWP
modules to access the other CGI.

- If you edit lots of files on one site and only want to copy the
updated files in a regular interval to the other site then "rsync"
can be used (not that easy to set up with cron and passprases).

- The easiest solution is of cause to run the CGI on the server
that has the file to edit. You can run a web server that only
do that.

There are lots of security issues involved in most of the solutions.

Without more details it is not possible to answer this question.
Are both servers under your control in a local network? How do you
access them, FTP, telnet, ssh or only http? Is the file in question
to be edited from both servers? If not, how fast do you need the
update to go to the server not updating it? What operating system
and what programming language?

kent

Georg Maaß

unread,
Nov 25, 2002, 7:57:43 AM11/25/02
to
Steve Rodgers wrote:
> I am in a bit of a pickle, I am trying to find a way to get my programs
> on one server to interact with files on another server. I am just not
> sure how to call the files... Typically I would use "open" but, I need
> to know how to translate this into a path to the file server....

If this that filesystem is mounted locally, then this happens completely
transparent. Everything is done by the operating system for you.

0 new messages