× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Tue, 14 Jun 2005, Scott Klement wrote:


The freebsd box (I hope, I run linux, not freebsd) can mount some share on
the AS/400. By share, I mean a shared directory in the IFS using netserver
stuff, AKA Windows sharing, AKA CIFS, AKA NetBIOS et al. After doing the
mount, the share will look to the freebsd box like local storage.

That's true, you could do that. However, I'd recommend using NFS in preference to SMB/CIFS. It just fits the paradigm better.

This method also doesn't work well when you need real-time response, since it requires a program to poll for a file or record to exist. Program-to-program communications are more efficient if you need real-time response.

There's also a huge risk of timing problems. You need to be very careful that you don't have two things writing to the same file, and that the CGI programs don't ever add to files that have already been processed. So this will take careful planning.

I think Scott is right here. As pointed out, there could be multiple processes all serving web requests and therefore wanting to write to the file. So you need something to handle that. As Scott suggested, a server program (using sockets) is probably the right way to go. Write a daemon that the apache processes connect to when they want to write. Send the data to the daemon and then let the daemon be responsible for writing it to disk. You would probably want to tell the apache processes when the write has completed (or an error message if it doesn't).

James Rich

It's not the software that's free; it's you.
        - billyskank on Groklaw

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.