in reply to tee -f?

how about:

@log = qx{tail -f $mylogfile};

Updated: leave out the -f (see reply below). I'm sorry I can't do better than that I don't have accces to the man command on my linux box (I'm in work).

Nuance

Replies are listed 'Best First'.
RE: Re: tee -f?
by Jonathan (Curate) on Jun 20, 2000 at 19:26 UTC
    Surely that line would not finish until the tail had reached EOF and tail -f doesn't - it just waits for more input
RE: Re: tee -f?
by Jonathan (Curate) on Jun 20, 2000 at 19:46 UTC
    Sorry Nuance I don't think that would work either, tail on its own will only return n number of records, its the stream itself I want to attach to.

    Thanks anyway