At 17:46 15/06/01, Greg White wrote:
>On Fri, Jun 15, 2001 at 06:29:10PM +0200, Lou Hevly wrote:
>
> > The docs say that tai64nlocal reads lines from stdin.  But for me
> > it just hangs until I hit Ctrl+C:
> >
> > [root:/usr/local/src/daemontools-0.70]$ ./tai64nlocal
> > @4000000037c219bf2ef02e94
> > ^C
> > [root:/usr/local/src/daemontools-0.70]$
> >
>
>tai64nlocal _does_ read from STDIN.
> From my machine here:
>gregw@frodo:~$ tai64nlocal
>@400000003b225d8422c3027c
>2001-06-09 10:31:38.583205500

Thanks for your input.

My problem was that I didn't hit return after typing 'tai64nlocal'.  I
typed:

"tai64nlocal @400000003b225d8422c3027c RET"
whereas I should have typed:
"tai64nlocal RET @400000003b225d8422c3027c RET"
              ^^^

This seems weird to me, since all the other daemontools don't need to
be 'initialized' by hitting a return before giving them input.

When walking through a log file I'd like to do something like:

while (<DATA>) {
     my $human_readable = qx!/usr/local/bin/tai64nlocal $_!
}

Any suggestions as to how this could be done?

-- 
All the best (Ad�u-siau),
Lou Hevly
[EMAIL PROTECTED]
http://www.visca.com

Reply via email to