If you want the method that uses a temporary file to capture the output, there's an example here:
(And a few more around the forum, but that's a self-contained one that's easy to experiment with.)
If you want the method that uses a temporary file to capture the output, there's an example here:
(And a few more around the forum, but that's a self-contained one that's easy to experiment with.)