Re: Logger messages getting stuck in a buffer somewhere?

From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 01/25/05


Date: Mon, 24 Jan 2005 22:10:48 -0500

In article <ct3m15$gcj$1@aplcore.jhuapl.edu>,
 "Karen Wieprecht" <karen.wieprecht@jhuapl.edu> wrote:

> Yes, using "logger" was one of several approaches I tried to get the
> messages to come into the system log in a timely manner. I played with the
> perl "use Sys::Syslog" stuff, but I couldn't get it working even with many
> good examples. I didn't include that info here because I thought that
> particular problem was better directed at the perl a perl newsgroup (but no
> one has replied to the post yet ...) I was hoping someone over on this
> newsgroup might know why "logger" introduces the delays, but are you
> familiar with the perl Syslog facility? I could send you the code snippit
> if you think you could spot the problem. let me know,

If you're having problems with both techniques, maybe there's a problem
with your system's syslogd or syslog() function, since everything is
dependent on these.

>
> "Barry Margolin" <barmar@alum.mit.edu> wrote in message
> news:barmar-0BE672.22093121012005@comcast.dca.giganews.com...
> > In article <csrs5b$9rc$1@aplcore.jhuapl.edu>,
> > "Karen Wieprecht" <karen.wieprecht@jhuapl.edu> wrote:
> >
> > > Hi,
> > > I wrote a perl script to process audit data into something a human can
> make
> > > sense of and then log it to syslog via the "logger" command.
> >
> > Isn't there a Syslog:: module that would allow you to do this
> > programmatically, instead of calling an external program?
> >
> > --
> > Barry Margolin, barmar@alum.mit.edu
> > Arlington, MA
> > *** PLEASE post questions in newsgroups, not directly to me ***

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


Relevant Pages

  • Re: asynchronous system shell?
    ... >> I have a perl script that is run on the web, that in turn, calls ... >> external program to complete before completing the script. ... but I can't tell how he actually launches it. ...
    (comp.lang.perl.misc)
  • Re: asynchronous system shell?
    ... > I can get the script to work, but the perl insists on waiting for the ... > external program to complete before completing the script. ... Sinan Unur ...
    (comp.lang.perl.misc)
  • Re: using a variable as STDIN for an external program
    ... C3> I'd like to call an external program through perl, but I need to redirect a ... C3> variable in my perl program, to STDIN of the external program. ...
    (comp.lang.perl.misc)
  • asynchronous system shell?
    ... I can get the script to work, but the perl insists on waiting for the ... external program to complete before completing the script. ... ask a web user to wait. ...
    (comp.lang.perl.misc)
  • Re: cut -c18-31,49-51 in perl?
    ... ~~> a tight loop, there are usually several ways to fix it. ... ~~> external program can run the whole loop in one go, ... the chance that's perl isn't on the system is much ... Why isn't calling 'cut' legitimate, ...
    (comp.lang.perl.misc)