command pipe concatenated messages

Jim Mozley jim.mozley at exponential-e.com
Tue Dec 30 10:07:13 CET 2003


> 
> The only thing I can think of is manually flushing the filehandle. I
> wouldn't expect that to have an effect since the code that Jim wrote
> sets $| on the PIPE filehandle, or he used syswrite which should
> bypass buffering, but if it works with a 2 second sleep, but not
> without it, it sounds like something isn't getting flushed properly,
> or maybe some kernel wierdness. The size of the write is far below the
> block size on linux let alone solaris (4K right?)
> 
> I'll go into the corner and shut up now.

Please don't, all comments have been useful. I can now replicate the 
problem which is great. I will now try Al's Nagios::Cmd module and see 
if that sorts out the issue, although the test that comes with it for 
checking this issue passes on Solaris.

Jim


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click




More information about the Developers mailing list