Mwnci whoami() Function

Syntax

whoami()

Description

The whoami() function returns the username (login name) of the user that is running the current process.

Example

User=whoami()
println("Hello ", User)
if (User != "root") {
    println("You must be root to run this")
}


Hello eccles
You must be root to run this