mjd-lists-plug on 10 Jan 2004 09:16:02 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] changing stdout in a script


gabriel rosenkoetter:
> This is all a bit academic, since the best way to do this in Jeff's
> case is to redirect the output from a commandline under an exec,
> but...

We established that a couple of days ago.

> On Fri, Jan 09, 2004 at 02:54:22AM -0500, mjd-lists-plug@plover.com wrote:
> > because that is what it does.  It is useless because the prompts and
> > responses from the session all go into the file, and so can't be seen
> > by the user who needs to receive them.
> 
> tee(1) is handy for this situation.

I don't think so.  Have you ever tried running 'sh | tee'?  The shell
output is buffered, because of the pipe, so you don't see anything it
prints until it's much too late.


___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug