in reply to How do I redirect outut from system () to a file and also to screen

Unless you are constrained to using system, qx// might be a better choice.
  • Comment on Re: How do I redirect outut from system () to a file and also to screen