Hi, On Wed, 4 Dec 2002, Rich Puhek wrote:
> I patched my spamd to check to see if the free memory is high enough > before spawning a new process. Worked great, but I haven't found a nice > protable way to do it (depends on /proc). If you can find a way to > determine free RAM in Solaris, that method should work great for you as > well. Take a look at Proc::ProcessTable, available at a CPAN mirror near you. Here's the version 0.37 README: http://www.cpan.org/modules/by-module/WWW/DURIST/Proc-ProcessTable-0.37.readme The important part is: "Currently works on windows, linux, solaris, aix, hpux, freebsd, irix, dec_osf, bsdi, netbsd, unixware 7.x and SunOS." That's probably about as portable as you're going to get without parsing `ps` output or using SNMP. I've worked with it under Linux and Solaris/Sparc (and IIRC Solaris/X86); it's a great tool for writing monitoring scripts, especially those watching for memory-bloated processes. hth, -- Bob ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk