From: <tb...@gr...> - 2002-03-16 11:44:29
|
Hi: thanks a lot!!! now i know what to do with my programs :D > tb...@gr... wrote: >> >> Hi: >> i m writing a small webmin program with mysql & perl-DBI. >> i found that if perl-DBI raise some error message then >> the rest page of webmin will disappear. >> so i try to print something myself to STDERR, and it stops rest >> pages of webmin. >> how can i show STDERR messages to webmin pages? >> thanks for ur help!!! > > The problem here is that when webmin is started at boot time from > an init script on some operating systems, STDERR is not available > so any webmin CGI that prints to it will immediately die with a > SIGPIPE error. This can be very annoying, and has caused several > problems with webmin in the past .. > > If you want to see stuff that gets printed to STDERR (useful for > debugging purposes), the solution is to login as root and run > /etc/webmin/stop ; /etc/webmin/start . If you are calling some library > or program that may write to STDERR, your perl code should have > the line open(STDERR, ">/dev/null"); somewhere at the top, so that it > doesn't die unexpectledy. > > - Jamie > > - > Forwarded by the Webmin development list at web...@we... To > remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel |