Sorry, I just discovered several bugs in my code that I have corrected since. Say if you want me to repost my latest version. I'm new here and I haven't figured out how to edit posts yet.
#***********************************************************************************************************************************
# Function : captureTimeAndOutputAndExitValueOfCommand
# Args : $strCommandLine [in] - String containing the full command to be executed.
#...
Hi all,
I'm trying to write a function that runs a command line (like say .... ls -l) and captures:
* its STDOUT and STDERR output
* its exit status
* the time it took to execute
The last two objectives are fairly easy but I'm having trouble with the first one. I know that running a command...
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.