Tmp files, rt.log files

How do I turn off /tmp/rt.log.* all together? I get a lot of 0 byte files
in /tmp.

I also see a bunch of files that look like:

/tmp/5RigCaWUCa
/tmp/5lq1sRRMcT
/tmp/5nCCMDgETI
/tmp/5rirUUSPyf
/tmp/5rluoutlAs

These only appear on the hosts running rt - what’s making those files?

matthew zeier - “I think there is a world market for about five
computers.” - Thomas J. Watson of IBM (1943)

How do I turn off /tmp/rt.log.* all together? I get a lot of 0 byte
files

in /tmp.

It’s in ~rt/etc/config.pm

It’s not clear to me how to turn it off completely.

I have:

$LogDir = “/tmp”;
$LogToScreen = ‘emergency’;
$LogToFile = ‘emergency’;
$LogToFileNamed = “$LogDir/rt.log.”.$$.".".$<; #log to rt.log..

How do I turn off /tmp/rt.log.* all together? I get a lot of 0 byte files
in /tmp.

It’s in ~rt/etc/config.pm

T�o de Hesselle, “Everything should be made as simple
Unix Systems Administrator as possible, but not simpler.”
– Albert Einstein
University of Technology, Sydney

How do I turn off /tmp/rt.log.* all together? I get a lot of 0 byte
files

in /tmp.

It’s in ~rt/etc/config.pm

It’s not clear to me how to turn it off completely.

$LogToFileNamed = “$LogDir/rt.log.”.$$.".".$<; #log to rt.log..

$LogToFileNamed = “/dev/null”;

I’d recommend stuffing the messages in a file you keep and rotate though.

Regards,

                         Bruce Campbell                            RIPE
               Systems/Network Engineer                             NCC
             www.ripe.net - PGP562C8B1B                      Operations

How do I turn off /tmp/rt.log.* all together? I get a lot of 0 byte
files

in /tmp.

It’s in ~rt/etc/config.pm

It’s not clear to me how to turn it off completely.

$LogToFileNamed = “$LogDir/rt.log.”.$$.".".$<; #log to
rt.log..

$LogToFileNamed = “/dev/null”;

I’ll try that.

I’d recommend stuffing the messages in a file you keep and rotate though.

I would, however the log files are all zero bytes.

  • mz

How do I turn off /tmp/rt.log.* all together? I get a lot of 0 byte
files

in /tmp.

I’d recommend stuffing the messages in a file you keep and rotate though.

I would, however the log files are all zero bytes.

Put one filename in there, without ‘$$’ (current process id) or ‘$<’
(current user id). The only reason you get multiple files is that
$LogToFileNamed expands to a different filename each time RT is run
(whether via mailgate, commandline or webUI).

Regards,

                         Bruce Campbell                            RIPE
               Systems/Network Engineer                             NCC
             www.ripe.net - PGP562C8B1B                      Operations