At Tue, 09 Dec 2003 18:53:38 +0200, Michael Stepanov wrote:
I try to use Embperl module in my command line script and when I run it I see message:
[24611]ERR: 26: Logfile /tmp/embperl.log open error: Permission denied
Could anybody help me, how can I disable to use Embperl log
file if I call this module from command line script (not via
Apache)
"embpexec -d 0" might do the trick, else you can also try "-l /dev/null"
This was something I meant to mention before. It'd be really good to have EMBPERL_DEBUG default to 0 rather than 1 (and not create /tmp/embperl.log when debug==0 of course - I forget what embperl does in this case)
I remember being very surprised that embpexec created /tmp/embperl.log by default (and died if embperl.log had already been created by a different uid).
I'd provide the one liner patch, but I can't find exactly where the default is set right now ;)
Thank you very much, Angus. I've found a place where defined default debug mode. This is a patch to the file embperl.h:
--- /home/misha/tmp/orig/Embperl-2.0b9/embperl.h 2003-02-15 22:46:31.000000000 +0200
+++ /home/misha/tmp/Embperl-2.0b9/embperl.h 2003-12-11 16:05:05.000000000 +0200
@@ -106,7 +106,7 @@
enum dbg
{
- dbgStd = 1,
+ dbgStd = 0,
dbgMem = 2,
dbgEval = 4,
dbgCmd = 8,When we rebuild Embperl again with this patch, debug mode will be ZERO. This is useful when Embperl is used in another modules:
use Embperl;
....
--
Best regards, Michael Stepanov,
Perl/Linux Developer Francoudi & Stephanou Ltd.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
