Thanks fish, much appreciated.
Your code works, so the explanation of mine is more academic. Still interested, but whenever you have time.
Continuing academic:
So performance probably not an issue. The only thing I have left is the order, ie in what I was trying to do I get the output from the...
You are right, simpler cleaner and more maintainable... I had been trying to keep the script off the disk as much as possible as the commands it runs are pretty disk intensive already. But that probably isn't worth the confusion.
Would still be interested if anyone can work out why it works in...
Okay, trying to sepparate out stdout and stderr. By all means just tell me there is a better way, but...
I have the following function to pull out the two streams and stick them in sepparate files, while also providing them as a parsable return value to the calling code.
I have pasted 2 code...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.