sys_eval() function. You can read the details here on his blog. Bernardo also created a similar function for PostgreSQL. Thank you, Bernardo!!!
sys_eval() is quite like sys_exec(): both functions can execute an arbitrary command string. The difference is that sys_eval() returns the output of the command, whereas sys_exec() returns the exit code. Go and check it out for yourself!