Skip to content

Latest commit

 

History

History
 
 

uname

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
  • infos = Information about the uname plugin is in keys below
  • infos/author = Markus Raab [email protected]
  • infos/licence = BSD
  • infos/provides = storage/info
  • infos/needs =
  • infos/placements = getstorage setstorage
  • infos/status = maintained unittest shelltest nodep readonly limited concept
  • infos/description = Includes uname information into the key database.

Introduction

This plugin is a storage plugin that will use the syscall uname (2). No resolver is needed for that plugin to work.

Installation

See installation. The package is called libelektra5-extra.

Special Values

This plugin defines following keynames below its mount point:

  • sysname
  • nodename
  • release
  • version
  • machine

Restrictions

This plugin is read-only.

Example

# To mount uname information using this plugin:
kdb mount -R noresolver none user:/tests/uname uname

# List available data
kdb ls user:/tests/uname/
#> user:/tests/uname/machine
#> user:/tests/uname/nodename
#> user:/tests/uname/release
#> user:/tests/uname/sysname
#> user:/tests/uname/version

# Read the OS name
kdb get user:/tests/uname/sysname
# STDOUT-REGEX: CYGWIN_NT.*|Darwin|DragonFly|FreeBSD|Linux|OpenBSD

# Read the OS version number
kdb get user:/tests/uname/release
# STDOUT-REGEX: [0-9]+(\.[0-9]+)*[[:alnum:][:punct:]]*

# Unmount the plugin
kdb umount user:/tests/uname