From: Jamie C. <jca...@we...> - 2001-04-23 14:55:07
|
Andreas Gruber wrote: > > Hallo! > > I have detected a kind of unfriendly behaviour of the miniserv of > Webmin. It occurs quite often when I call external commands within my > webmin module. Whenever the Webmin module (or the external command) > prints some output not to the resulting webpage but to STDERR I suppose. > The output appears somewhere on the system. Usually it appears on the > console I previously started the webmin miniserv from. But sometimes, > and this can really be annoying on systems several people work on, these > outputs appear on just any other console. > > Is it possible to divert all these outputs to a defined point? > (/dev/null) > > Any other idea to workaround the problem You could stop this by editing /etc/webmin/start and changing the exec /path/to/miniserv.pl /etc/webmin/miniserv.conf line to exec /path/to/miniserv.pl /etc/webmin/miniserv.conf 2>/dev/null Personally, I prefer to leave it in so that my CGI programs can output debugging into the STDERR. As another poster mentioned, it is best to make sure your CGIs never output stuff to STDERR either directly or indirectly, unless you want it to appear on the console. - Jamie |