To create new wiki account, please join us on #znc at Libera.Chat and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.

shell

From ZNC
Revision as of 08:31, 25 March 2013 by >Silverleo (DCC stuff was moved to dcc)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This module will allow you to type commands into a query as if it were a terminal. The one obvious drawback to a real terminal is that you can not use interactive programs like vi, pine or su.

Usage

Arguments

This user module takes no arguments.

Read loading modules to learn more about loading modules.

Commands

To execute commands you have to open a query with the *shell user. When executing commands the result should be like this:

<prozac> pwd
<*shell> /home/prozac
<*shell> znc$
<prozac> cd .znc
<*shell> znc$
<prozac> pwd
<*shell> /home/prozac/.znc
<*shell> znc$
<prozac> ls -al
<*shell> total 36
<*shell> drwx------   6 prozac users 4096 Oct  9 16:17 .
<*shell> drwxr-xr-x  51 prozac users 4096 Oct  9 16:17 ..
<*shell> drwx------   3 prozac users 4096 Oct  9 16:17 configs
<*shell> drwx------  12 prozac users 4096 Sep 24 17:16 moddata
<*shell> drwx------   2 prozac users 4096 Oct  8 14:27 modules
<*shell> drwx------  10 prozac users 4096 Oct  8 10:04 users
<*shell> -rw-r--r--   1 prozac users 1644 Oct  8 23:57 znc.pem
<*shell> -rw-r--r--   1 prozac users    6 Oct  8 14:30 znc.pid
<*shell> znc$