Doug,

Do you know which directory contains the names pipes on Linux? This may be my key as I have messed up owner/protection on several directories.

I modified the .pl code to return the error number as you suggested, reformime is returning a 256.

When I ran $mimeunpacker_binary directly, the system degraded significantly. It took me about 5 minutes to tail syslog to see that there are several 'out of memory' errors. As I'm supporting this system remotely, I need to have the user reboot.

Thanks for your help!

Troy Frericks.
[EMAIL PROTECTED]
#

At 07:55 AM 3/6/2003 Thursday, D.Monroe wrote:


Troy Frericks wrote:
As I'm a novice with perl, can somebody tell me what the
"close(MIME)"
in /var/qmail/bin/qmail-scanner-queue.pl actually does?. I need to track down all of the files it is referencing.
Here are both the 'open' and the 'close' for reference (mimeunpacker_binary is reformime)...
==
open(MIME,"$mimeunpacker_binary <$scandir/$wmaildir/new/$file_id|")
||&tempfail("cannot call mimeunpacker - $!");
close(MIME)||&tempfail("cannot close mimeunpacker - $!");
==

the "open" (*1) line reads the output of the piped cmd
"$mimeunpacker_binary <$scandir/$wmaildir/new/$file_id|"
into the opened I/O filehandle named "MIME".
That MIME-named pipe is trying to get closed (*2) in order to be examined, but the close of the pipe is failing.
Perhaps modifying:
close(MIME)||&tempfail("cannot close mimeunpacker - $! - $?");
might reveal something helpful (e.g. exit status)?


1- http://www.perldoc.com/perl5.8.0/pod/func/open.html
2- http://www.perldoc.com/perl5.8.0/pod/func/close.html

Have you tried running the "$mimeunpacker_binary <$scandir/$wmaildir/new/$file_id" cmd by hand on the mail file?



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general




-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to