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

ZNC website has died on 29 March 2017, without fresh backups. Wiki is now back from dump of July 2015. Please help restoring the lost content.

shell

From ZNC
Jump to: navigation, 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[edit]

Arguments

This user module takes no arguments.

Read loading modules to learn more about loading modules.

Commands[edit]

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$