Table of Contents

uname plugin

This plugin provides an interface to the uname() system call.


Functions

uname(f)call uname() and return field <f>

The 'field' can have the following values:

sysnameoperating system
nodenamenetwork node hostname
releasekernel release
versionkernel version
machinemachine hardware name
domainnameNIS or YP domain name

see uname(1) and uname(2) for details.


Example

Widget CPU {
    class  'Text'
    expression  uname('machine')
    prefix 'CPU '
    width  9
    align  'L'
    update 0
}