Re: svscan and multilog with a perl process
Rob Mayoff <[email protected]>
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Message-ID | <[email protected]> |
+---------- On Aug 27, Joel Stevenson said:
| I'm having a problem with multilog when it is being invoked by svscan
| to receive output from a perl process. There doesn't appear to be
| any output recorded at all in the log.
stdout is block-buffered if the output isn't a tty. You need to make it
less buffered. Try this:
/DIR/test/foo.pl
-----------------------
#!/usr/bin/perl
$| = 1;
while (1) {
print localtime()."\n";
sleep (int (rand (2)) + 1);
}
#__EOF__