EMILUA(3em)

πŸ“¦ version 0.12.1, in nixos 26.05, nixpkgs unstable

πŸŽ€ NAME πŸŽ€

Bestie, this is Emilua β€” the Lua execution engine β€” and this page is filed as EMILUA(3em). πŸ’–


✨ SYNOPSIS ✨

Okay so here’s the signature, no cap:

local system = require "system"
system.jail_get(params: table, flags: string[]|nil) -> integer, { [string]: string }

πŸ’… DESCRIPTION πŸ’…

system.jail_get retrieves jail parameters. Periodt.

params specify β€” as a list of strings β€” which parameters are desired in the returned value.

params also specify β€” in the same format as used by system.jail_set() β€” which jail to read values from. Usually "jid" or "name" are used as filters. The special parameter "lastjid" can be used to retrieve a list of all jails. 🫢

flags may contain the following values:

  • "dying" β€” one of the values flags may contain.

🌸 EXAMPLE 🌸

Retrieve the hostname and path of jail "foo":

local jid, params = system.jail_get {
    "host.hostname",
    "path",
    ["name"] = "foo"
}

print(jid)
print(params["host.hostname"])
print(params.path)

πŸ’Œ cute sign-off: brought to you by source/version Emilua 0.12.1-nixpkgs1 and date 1980-01-01. mwah πŸ’‹βœ¨
πŸ“¦ where this page comes from