Use popen in shelled(). Redirect all stdout and stderr for any command