def get_remote_home(host, cl_args):
cmd = "<STR_LIT>"<EOL>if not is_self(host):<EOL><INDENT>cmd = ssh_remote_execute(cmd, host, cl_args)<EOL><DEDENT>pid = subprocess.Popen(cmd,<EOL>shell=True,<EOL>stdout=subprocess.PIPE,<EOL>stderr=subprocess.PIPE)<EOL>return_code = pid.wait()<EOL>output = pid.communicate()<EOL>if return_code != <NUM_LIT:0>:<EOL><INDENT>Log.error("<STR_LIT>" % (host, output))<EOL>sys.exit(-<NUM_LIT:1>)<EOL><DEDENT>return output[<NUM_LIT:0>].strip("<STR_LIT:\n>")<EOL>
get home directory of remote host