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__
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.