def METHOD_NAME(cmd, lock=None):
    '''
    @param log_id 
    @param cmd 
    @param lock 
    @return: None
    '''
    try:
        if lock:
            lock.acquire()
        ret_code = subprocess.call(cmd, shell=True)
    except Exception as e:
        raise e
    finally:
        if lock:
            lock.release()
    if ret_code == 0:
        return 0
    else:
        return -1