I'm wondering if there is an easy way to execute a shell command and simply capture all of STDERR and STDOUT into a string, potentially without using IPC. I don't need to interact with the process at all, and I find using IPC to be quite awkward/challenging for me. My intuition tells me that there ought to be a simple way to do this, but my knowledge is failing me.
Any input would be greatly appreciated!
Update: Sorry, I meant to say that I wanted to capture STDOUT and STDERR into two separate strings.