I am working on a script that calls several system commands to change some OS settings and run some other commands. I want to try to capture stderr for when something goes wrong. I have been able to do this, however, all I get is the output from the command. Is there a way to tell/capture which exact system call/command resulted in the error?