Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • You may find some of the answers here helpful: stackoverflow.com/questions/2996887/… Commented Dec 22, 2016 at 13:02
  • You are telling me the same what I was using. But it should redirect to multiple file descriptors. Not only to single file. Commented Dec 22, 2016 at 13:09
  • Not usefull. Not working Commented Dec 22, 2016 at 13:19
  • With the code in my answer you can redirect to as many files as you can open. :) Commented Dec 22, 2016 at 13:26
  • What Python version are you using? Can you wait for "my_commands" to complete before writing the output data to the files? Or do you need to write to the files while "my_commands" is still running? If you can wait, what you want is easy. If you need to write to the 3 files while "my_commands" is still running it's a bit trickier. Commented Dec 26, 2016 at 8:34