Yes RichardK, i know that i'm collecting the output in a string and thus, it'll print only after completion. :) I was looking for a way where i could instead print logs at runtime. Thanks for the suggestion! :) I was looking for pipe_out but salva's comment did the trick.