I don't think the open function will negotiate
the http stuff. open will work on files (or pipes)
that are 'visible' on the current file system. In other
words, if you cant 'cd' to that dir and see that file,
then open can't either.
Seems to me you have two general options:
1 - mount the drive on the second server from the first
so your application can 'see' it.
2 - write/run an application on the second server that will
do the trick when asked.... using sockets, or
even some unconventional CGI. There could be quite
a few approaches to doing this.
I my opinion, the best approach would be to make the drive
on the second server 'visible' (mount it) from the first server
and setup permissions and such appropriately.
HTH If you are new to Tek-Tips, please use descriptive titles, check the FAQs,
and beware the evil typo.
I've done something like this and it worked pretty well. What I did was write a "cgi" program to run on the second server and update the file. I call it a quote-cgi-unquote program because it really doesn't do anything for a browser, but it does use http protocol for communicating with the calling program. It gets a POST request, does what it should, and returns a few lines (can be html or text, depending on the content-type header) with the results so the calling program can parse them. I call the program from the other server using the LWP library. Worked like a charm!
Tracy Dryden
tracy@bydisn.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.