()
Gather basic OS information
Gather basic OS information
Gather basic OS information
def uptux_check_sysinfo():
    """Gather basic OS information"""
    # Gather a few basics for the report.
    uname = os.uname()
    tee("Host: {}".format(uname[1]))
    tee("OS: {}, {}".format(uname[0], uname[3]))
    tee("Kernel: {}".format(uname[2]))
    tee("Current user: {} (UID {} GID {})".format(getpass.getuser(),
                                                  os.getuid(),
                                                  os.getgid()))
    tee("Member of following groups:\n  {}".format(shell_exec('groups')))
def uptux_check_sysinfo ( ) : # Gather a few basics for the report. uname = os . uname ( ) tee ( "Host: {}" . format ( uname [ 1 ] ) ) tee ( "OS: {}, {}" . format ( uname [ 0 ] , uname [ 3 ] ) ) tee ( "Kernel: {}" . format ( uname [ 2 ] ) ) tee ( "Current user: {} (UID {} GID {})" . format ( getpass . getuser ( ) , os . getuid ( ) , os . getgid ( ) ) ) tee ( "Member of following groups:\n  {}" . format ( shell_exec ( 'groups' ) ) )