$out = `sh -x /mypath/script_name.ksh 2>&1 >> /tmp/debug.log`;