>>>>> "BT" == Ben Tilly <[EMAIL PROTECTED]> writes:

  BT> Be aware that IO::Tee has limitations.  It only works for output that
  BT> goes through Perl's IO system.  In particular if your program makes
  BT> a system call, the child process will NOT see the tee.


i bet you can work around that by saving STDOUT, reopening it on IO::Tee
and having IO::Tee output to the file and the saved STDOUT. i leave
implementing this as an exercise to the reader. but using shell to do
this is probably the easiest as you can just use tee and all stdout
piped to it (from the perl program or its subprocesses) will get
teed. as larry says, the shell has to be useful for something!

uri

-- 
Uri Guttman  ------  [EMAIL PROTECTED]  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to