Limnoria/plugins/Unix
Valentin Lorentz cd02444f87 supybot-plugin-doc: Add labels for all command and config variables
So they can be referenced from elsewhere in the doc.
2021-04-06 00:33:07 +02:00
..
locales Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
__init__.py Use importlib instead of imp. 2020-01-26 12:00:08 +01:00
config.py Unix: make the default ping count configurable (fixes #1187) 2017-09-23 12:45:17 -07:00
messages.pot Unix: fix a typo in sysuname & sysuptime's command descriptions 2018-09-30 18:03:29 -07:00
plugin.py all plugins: auto-generate READMEs 2021-04-05 17:42:31 +02:00
README.rst supybot-plugin-doc: Add labels for all command and config variables 2021-04-06 00:33:07 +02:00
test.py Add config variable supybot.commands.allowShell. (#1301) 2017-09-24 21:11:21 +02:00

Documentation for the Unix plugin for Supybot

Purpose

Provides commands available only on Unix.

Usage

Provides Utilities for Unix-like systems.

Commands

call <command to call with any arguments>

Calls any command available on the system, and returns its output. Requires owner capability. Note that being restricted to owner, this command does not do any sanity checking on input/output. So it is up to you to make sure you don't run anything that will spamify your channel or that will bring your machine to its knees.

crypt <password> [<salt>]

Returns the resulting of doing a crypt() on <password>. If <salt> is not given, uses a random salt. If running on a glibc2 system, prepending '$1$' to your salt will cause crypt to return an MD5sum based crypt rather than the standard DES based crypt.

errno <error number or code>

Returns the number of an errno code, or the errno code of a number.

fortune takes no arguments

Returns a fortune from the Unix fortune program.

pid takes no arguments

Returns the current pid of the process for this Supybot.

ping [--c <count>] [--i <interval>] [--t <ttl>] [--W <timeout>] [--4|--6] <host or ip>

Sends an ICMP echo request to the specified host. The arguments correspond with those listed in ping(8). --c is limited to 10 packets or less (default is 5). --i is limited to 5 or less. --W is limited to 10 or less. --4 and --6 can be used if and only if the system has a unified ping command.

ping6 [--c <count>] [--i <interval>] [--t <ttl>] [--W <timeout>] [--4|--6] <host or ip>

Sends an ICMP echo request to the specified host. The arguments correspond with those listed in ping(8). --c is limited to 10 packets or less (default is 5). --i is limited to 5 or less. --W is limited to 10 or less. --4 and --6 can be used if and only if the system has a unified ping command.

progstats takes no arguments

Returns various unix-y information on the running supybot process.

shell <command to call with any arguments>

Calls any command available on the system using the shell specified by the SHELL environment variable, and returns its output. Requires owner capability. Note that being restricted to owner, this command does not do any sanity checking on input/output. So it is up to you to make sure you don't run anything that will spamify your channel or that will bring your machine to its knees.

spell <word>

Returns the result of passing <word> to aspell/ispell. The results shown are sorted from best to worst in terms of being a likely match for the spelling of <word>.

sysuname takes no arguments

Returns the uname -a from the system the bot is running on.

sysuptime takes no arguments

Returns the uptime from the system the bot is running on.

wtf [is] <something>

Returns wtf <something> is. 'wtf' is a Unix command that first appeared in NetBSD 1.5. In most Unices, it's available in some sort of 'bsdgames' package.

Configuration

supybot.plugins.Unix.public

This config variable defaults to "True", is not network-specific, and is not channel-specific.

Determines whether this plugin is publicly visible.