Журнал лабораторных работ

Содержание

Журнал

Четверг (06/23/11)

/dev/pts/0
14:05:58
#~

/dev/pts/1
14:05:58
#~

/dev/pts/0
14:06:22
#asterisk-jabber-logger hello
/usr/local/bin/asterisk-jabber-logger: line 1: endxmpp: команда не найдена
/dev/pts/1
14:06:22
#asterisk-jabber-logger hello
/usr/local/bin/asterisk-jabber-logger: line 1: endxmpp: команда не найдена
/dev/pts/0
14:06:33
#vim /etc/asterisk/extensions.conf
/dev/pts/1
14:06:33
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2126.22012.12528	2011-06-23 15:07:44.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-23 15:09:35.000000000 +0300
@@ -121,6 +121,7 @@
 exten => 2310,1,Dial(SIP/2303&SIP/2304.10)
 exten => _23XX,1,Set(MON_FILENAME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}-${EXTEN}-${CALLERID(num)})
 exten => _23XX,n,Monitor(wav,${MON_FILENAME},m)
+exten => _23XX,n,System(/usr/local/bin/asterisk-jabber-logger Vam zvonyat s ${CALLER(num)})
 exten => _23XX,n,Dial(SIP/${EXTEN},10)
 exten => _23XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?voicemail)
 exten => _23XX,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?voicemail)
/dev/pts/0
14:09:35
#asterisk -rx 'dialplan reload'
Dialplan reloaded.
/dev/pts/1
14:09:35
#asterisk -rx 'dialplan reload'
Dialplan reloaded.
/dev/pts/0
14:09:49
#freetalk
Loading dictionary [/usr/share/dict/words]... [98569] words
Connecting ...
Connected.
Authenticating ...
[iq received: (unhandled yet)]
logger@kiev.unix.nt> user@kiev.unix.nt re
No such command or buddy. See /help
logger@kiev.unix.nt> user@kiev.unix.nt ку
No such command or buddy. See /help
logger@kiev.unix.nt> .йгше
...
          ##   `.................     **
                .............. .       **
                .....    v .. ..        `*
                `. ..     ......
                 ....      .. ..
                 ....       .. ..
                 WW WW      WW WW
   ----------------------------------------
         Thank you for using freetalk
   ----------------------------------------
/dev/pts/1
14:09:49
#freetalk
Loading dictionary [/usr/share/dict/words]... [98569] words
Connecting ...
Connected.
Authenticating ...
[iq received: (unhandled yet)]
logger@kiev.unix.nt> user@kiev.unix.nt re
No such command or buddy. See /help
logger@kiev.unix.nt> user@kiev.unix.nt ку
No such command or buddy. See /help
logger@kiev.unix.nt> .йгше
...
          ##   `.................     **
                .............. .       **
                .....    v .. ..        `*
                `. ..     ......
                 ....      .. ..
                 ....       .. ..
                 WW WW      WW WW
   ----------------------------------------
         Thank you for using freetalk
   ----------------------------------------
/dev/pts/0
14:17:01
#/etc/init.d/ejabberder restart
bash: /etc/init.d/ejabberder: Нет такого файла или каталога
/dev/pts/1
14:17:01
#/etc/init.d/ejabberder restart
bash: /etc/init.d/ejabberder: Нет такого файла или каталога
/dev/pts/0
14:17:22
#ps aux | grep ejabber
ejabberd  4486  2.4  0.5 101880 47068 ?        S    15:17   0:00 /usr/lib/erlang/erts-5.8/bin/beam -K false -P 250000 -- -root /usr/lib/erlang -progname erl -- -home /var/lib/ejabberd -- -sname ejabberd -pa /usr/lib/ejabberd/ebin -s ejabberd -kernel inetrc "/etc/ejabberd/inetrc" -ejabberd config "/etc/ejabberd/ejabberd.cfg" log_path "/var/log/ejabberd/ejabberd.log" erlang_log_path "/var/log/ejabbe
root      4533  0.0  0.0   7568   868 pts/2    S+   15:17   0:00 grep ejabber
ejabberd 31351  0.0  0.0  10560   524 ?        S    12:07   0:00 /usr/lib/erlang/erts-5.8/bin/epmd -daemon
/dev/pts/1
14:17:22
#ps aux | grep ejabber
ejabberd  4486  2.4  0.5 101880 47068 ?        S    15:17   0:00 /usr/lib/erlang/erts-5.8/bin/beam -K false -P 250000 -- -root /usr/lib/erlang -progname erl -- -home /var/lib/ejabberd -- -sname ejabberd -pa /usr/lib/ejabberd/ebin -s ejabberd -kernel inetrc "/etc/ejabberd/inetrc" -ejabberd config "/etc/ejabberd/ejabberd.cfg" log_path "/var/log/ejabberd/ejabberd.log" erlang_log_path "/var/log/ejabbe
root      4533  0.0  0.0   7568   868 pts/2    S+   15:17   0:00 grep ejabber
ejabberd 31351  0.0  0.0  10560   524 ?        S    12:07   0:00 /usr/lib/erlang/erts-5.8/bin/epmd -daemon
/dev/pts/0
14:22:39
#vim /etc/asterisk/extensions.conf
/dev/pts/1
14:22:39
#vim /etc/asterisk/extensions.conf
/dev/pts/0
14:30:50
#asterisk -rx
asterisk: option requires an argument -- 'x'
/dev/pts/1
14:30:50
#asterisk -rx
asterisk: option requires an argument -- 'x'
/dev/pts/0
14:31:00
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 30604)
Verbosity is at least 3
linux7*CLI> database put jid2303 user@kiev.unix.nt
...
/SIP/Registry/2303                                : 192.168.107.200:5060:3600:2303:sip:2303@192.168.107.200:5060
/SIP/Registry/2304                                : 192.168.107.2:5538:3600:2304:sip:2304@192.168.107.2:5538;rinstance=f5cc086acb542949
/SIP/Registry/lvov                                : 192.168.108.1:5060:120:kiev:sip:kiev@192.168.108.1
/SIP/Registry/msk                                 : 192.168.101.1:5060:120:kiev:sip:kiev@192.168.101.1
/dundi/secret                                     : XEufWMPCpAjvEu1m+lsrHw==;1uScfUZ1qj14dPg8JCmCSA==
/dundi/secretexpiry                               : 1308833436
6 results found.
[Jun 23 15:33:03] NOTICE[30628]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
14:31:00
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 30604)
Verbosity is at least 3
linux7*CLI> database put jid2303 user@kiev.unix.nt
...
/SIP/Registry/2303                                : 192.168.107.200:5060:3600:2303:sip:2303@192.168.107.200:5060
/SIP/Registry/2304                                : 192.168.107.2:5538:3600:2304:sip:2304@192.168.107.2:5538;rinstance=f5cc086acb542949
/SIP/Registry/lvov                                : 192.168.108.1:5060:120:kiev:sip:kiev@192.168.108.1
/SIP/Registry/msk                                 : 192.168.101.1:5060:120:kiev:sip:kiev@192.168.101.1
/dundi/secret                                     : XEufWMPCpAjvEu1m+lsrHw==;1uScfUZ1qj14dPg8JCmCSA==
/dundi/secretexpiry                               : 1308833436
6 results found.
[Jun 23 15:33:03] NOTICE[30628]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304
linux7*CLI> exit
Executing last minute cleanups
14:36:40
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 30604)
Verbosity is at least 3
linux7*CLI> database sh
...
/SIP/Registry/lvov                                : 192.168.108.1:5060:120:kiev:sip:kiev@192.168.108.1
/SIP/Registry/msk                                 : 192.168.101.1:5060:120:kiev:sip:kiev@192.168.101.1
/dundi/secret                                     : XEufWMPCpAjvEu1m+lsrHw==;1uScfUZ1qj14dPg8JCmCSA==
/dundi/secretexpiry                               : 1308833436
/jid/2303                                         : user2@kiev.unix.nt
/jid/2304                                         : user1@kiev.unix.nt
8 results found.
[Jun 23 15:39:04] NOTICE[30628]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304
linux7*CLI> quit
Executing last minute cleanups
/dev/pts/0
14:36:40
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 30604)
Verbosity is at least 3
linux7*CLI> database sh
...
/SIP/Registry/lvov                                : 192.168.108.1:5060:120:kiev:sip:kiev@192.168.108.1
/SIP/Registry/msk                                 : 192.168.101.1:5060:120:kiev:sip:kiev@192.168.101.1
/dundi/secret                                     : XEufWMPCpAjvEu1m+lsrHw==;1uScfUZ1qj14dPg8JCmCSA==
/dundi/secretexpiry                               : 1308833436
/jid/2303                                         : user2@kiev.unix.nt
/jid/2304                                         : user1@kiev.unix.nt
8 results found.
[Jun 23 15:39:04] NOTICE[30628]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304
linux7*CLI> quit
Executing last minute cleanups
14:39:59
#asterisk -rx 'dialplan reload'
Dialplan reloaded.
/dev/pts/1
14:39:59
#asterisk -rx 'dialplan reload'
Dialplan reloaded.
прошло 35 минут
/dev/pts/0
15:15:55
#/charset
exten => 9,1,Goto(menu,s,start-menu)
exten => 0,1,Playback(/var/tmp/asterisk/record4)
[menu_uk]
exten => s,1(start-menu_uk),Background(/var/tmp/asterisk/record11)      ;privet_uk
[kievmenu]
exten => s,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/ru-kiev.txt)
exten => s,n,Goto(menu,s,start-menu)
exten => 9,1,Goto(menu,s,start-menu)
[submenu]
exten => s,1,Wait(1)
...
include => local
include => national
[gr1]
[gr3]
[gr2]
include => local
[gr3]de => national
include => international
[gr4]
"/etc/asterisk/extensions.conf" 162L, 5205C записано
/dev/pts/1
15:15:55
#/charset
exten => s,n,WaitExten(2)
exten => s,n(start-menu),Background(/var/tmp/asterisk/record2)  ;glavnoe menu
exten => s,n,WaitExten(5)
exten => s,n,Background(/var/tmp/asterisk/record8)     ; sdelaite svoy vybor
exten => s,n,WaitExten(3)
exten => s,n,Background(/var/tmp/asterisk/record9)     ; vy slihkom dolgo zhdete
exten => i,1,Background(/var/tmp/asterisk/record5)     ; oshibka
exten => s,n,Wait(5)
                 (5)
exten => s,n,Wait(3)
...
include => local
include => national
[gr1]
[gr3]
[gr2]
include => local
[gr3]de => national
include => international
[gr4]
"/etc/asterisk/extensions.conf" 162L, 5205C записано
/dev/pts/0
15:20:08
#vim /etc/asterisk/extensions.conf
/dev/pts/1
15:20:08
#vim /etc/asterisk/extensions.conf
/dev/pts/0
15:20:22
#[ ]

/dev/pts/1
15:20:22
#[ ]

/dev/pts/0
15:23:33
#asterisk -rx 'dialplan reload'
Dialplan reloaded.
/dev/pts/1
15:23:33
#asterisk -rx 'dialplan reload'
Dialplan reloaded.
/dev/pts/0
15:23:46
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 30604)
...
    -- Called 2303
    -- Music class default requested but no musiconhold loaded.
    -- SIP/2303-00000014 is ringing
    -- SIP/2303-00000014 answered SIP/2304-00000013
    -- Music class default requested but no musiconhold loaded.
[Jun 23 16:25:32] NOTICE[5041]: rtp.c:1808 ast_rtp_read: Unknown RTP codec 126 received from '0.0.0.0'
[Jun 23 16:25:42] NOTICE[5041]: rtp.c:1808 ast_rtp_read: Unknown RTP codec 126 received from '0.0.0.0'
  == Spawn extension (gr1, 2303, 4) exited non-zero on 'SIP/2304-00000013'
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
15:23:46
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 30604)
...
    -- Called 2303
    -- Music class default requested but no musiconhold loaded.
    -- SIP/2303-00000014 is ringing
    -- SIP/2303-00000014 answered SIP/2304-00000013
    -- Music class default requested but no musiconhold loaded.
[Jun 23 16:25:32] NOTICE[5041]: rtp.c:1808 ast_rtp_read: Unknown RTP codec 126 received from '0.0.0.0'
[Jun 23 16:25:42] NOTICE[5041]: rtp.c:1808 ast_rtp_read: Unknown RTP codec 126 received from '0.0.0.0'
  == Spawn extension (gr1, 2303, 4) exited non-zero on 'SIP/2304-00000013'
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/0
15:27:44
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 30604)
...
    -- Executing [2303@gr1:3] Dial("SIP/2304-00000017", "SIP/2303,10,m") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 2303
    -- Music class default requested but no musiconhold loaded.
    -- SIP/2303-00000018 is ringing
    -- SIP/2303-00000018 answered SIP/2304-00000017
    -- Music class default requested but no musiconhold loaded.
  == Spawn extension (gr1, 2303, 3) exited non-zero on 'SIP/2304-00000017'
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
15:27:44
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 30604)
...
    -- Executing [2303@gr1:3] Dial("SIP/2304-00000017", "SIP/2303,10,m") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 2303
    -- Music class default requested but no musiconhold loaded.
    -- SIP/2303-00000018 is ringing
    -- SIP/2303-00000018 answered SIP/2304-00000017
    -- Music class default requested but no musiconhold loaded.
  == Spawn extension (gr1, 2303, 3) exited non-zero on 'SIP/2304-00000017'
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/0
15:32:04
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 30604)
Verbosity is at least 3
linux7*CLI> moh show files
[Jun 23 16:33:06] NOTICE[30628]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
15:32:04
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 30604)
Verbosity is at least 3
linux7*CLI> moh show files
[Jun 23 16:33:06] NOTICE[30628]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/0
15:33:21
#asterisk
asterisk                asterisk-jabber-logger
15:33:21
#asterisk
asterisk                asterisk-jabber-logger
/dev/pts/1
15:33:21
#asterisk
asterisk                asterisk-jabber-logger
15:33:21
#asterisk
asterisk                asterisk-jabber-logger
/dev/pts/0
15:33:21
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/1
15:33:21
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/0
15:33:47
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 5162)
Verbosity was 0 and is now 3
linux7*CLI> moh show files
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
15:33:47
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 5162)
Verbosity was 0 and is now 3
linux7*CLI> moh show files
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/0
15:34:10
#vim /var/lib/asterisk/moh/theme_of_SSS.gsm .
/dev/pts/1
15:34:10
#vim /var/lib/asterisk/moh/theme_of_SSS.gsm .
15:34:10
#vim /var/lib/asterisk/moh/theme_of_SSS.gsm .
/dev/pts/0
15:34:10
#vim /var/lib/asterisk/moh/theme_of_SSS.gsm .
/dev/pts/1
15:34:10
#vim /etc/asterisk/musiconhold.conf
--- /tmp/l3-saved-2126.22198.6927	2011-06-23 16:34:55.000000000 +0300
+++ /etc/asterisk/musiconhold.conf	2011-06-23 16:35:17.000000000 +0300
@@ -44,7 +44,7 @@
 
 [default]
 mode=files
-directory=moh
+directory=/var/lib/asterisk/moh
 ;
 ;[native-random]
 ;mode=files
/dev/pts/0
15:34:10
#vim /etc/asterisk/musiconhold.conf
прошло 16 минут
15:50:27
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 5269)
Verbosity is at least 3
[Jun 23 16:51:07] NOTICE[5293]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
15:50:27
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 5269)
Verbosity is at least 3
[Jun 23 16:51:07] NOTICE[5293]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/0
15:51:46
#vim /tmp/redirect.txt
/dev/pts/1
15:51:46
#vim /tmp/redirect.txt
--- /dev/null	2011-06-20 11:55:56.325714881 +0300
+++ /tmp/redirect.txt	2011-06-23 16:53:31.000000000 +0300
@@ -0,0 +1,2 @@
+2320 80976335163
+2321 80979691759
/dev/pts/0
15:53:31
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 5269)
...
/SIP/Registry/lvov                                : 192.168.108.1:5060:120:kiev:sip:kiev@192.168.108.1
/SIP/Registry/msk                                 : 192.168.101.1:5060:120:kiev:sip:kiev@192.168.101.1
/dundi/secret                                     : yqieYKIYSyVS+I9qoipEFg==;asmGXQ8gK1rL+UFyvI2JYQ==
/dundi/secretexpiry                               : 1308840636
/jid/2303                                         : user2@kiev.unix.nt
/jid/2304                                         : user1@kiev.unix.nt
/mobile/2320                                      : 380976335163
9 results found.
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
15:53:31
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 5269)
...
/SIP/Registry/lvov                                : 192.168.108.1:5060:120:kiev:sip:kiev@192.168.108.1
/SIP/Registry/msk                                 : 192.168.101.1:5060:120:kiev:sip:kiev@192.168.101.1
/dundi/secret                                     : yqieYKIYSyVS+I9qoipEFg==;asmGXQ8gK1rL+UFyvI2JYQ==
/dundi/secretexpiry                               : 1308840636
/jid/2303                                         : user2@kiev.unix.nt
/jid/2304                                         : user1@kiev.unix.nt
/mobile/2320                                      : 380976335163
9 results found.
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/0
15:55:25
#ls /etc/asterisk/
adsi.conf                extconfig.conf           osp.conf
adtranvofr.conf          extensions.ael           oss.conf
agents.conf              extensions.conf          phone.conf
ais.conf                 extensions.conf.SAVE     phoneprov.conf
alarmreceiver.conf       extensions.lua           queuerules.conf
alsa.conf                extensions_minivm.conf   queues.conf
amd.conf                 features.conf            res_config_sqlite.conf
asterisk.adsi            festival.conf            res_ldap.conf
asterisk.conf            followme.conf            res_odbc.conf
cdr_adaptive_odbc.conf   func_odbc.conf           res_pgsql.conf
...
cli_aliases.conf         logger.conf              sla.conf
cli.conf                 manager.conf             smdi.conf
cli_permissions.conf     manager.d/               telcordia-1.adsi
codecs.conf              meetme.conf              udptl.conf
console.conf             mgcp.conf                unistim.conf
dbsep.conf               minivm.conf              usbradio.conf
dnsmgr.conf              misdn.conf               users.conf
dsp.conf                 modules.conf             voicemail.conf
dundi.conf               musiconhold.conf         vpb.conf
enum.conf                muted.conf
/dev/pts/1
15:55:25
#ls /etc/asterisk/
adsi.conf                extconfig.conf           osp.conf
adtranvofr.conf          extensions.ael           oss.conf
agents.conf              extensions.conf          phone.conf
ais.conf                 extensions.conf.SAVE     phoneprov.conf
alarmreceiver.conf       extensions.lua           queuerules.conf
alsa.conf                extensions_minivm.conf   queues.conf
amd.conf                 features.conf            res_config_sqlite.conf
asterisk.adsi            festival.conf            res_ldap.conf
asterisk.conf            followme.conf            res_odbc.conf
cdr_adaptive_odbc.conf   func_odbc.conf           res_pgsql.conf
...
cli_aliases.conf         logger.conf              sla.conf
cli.conf                 manager.conf             smdi.conf
cli_permissions.conf     manager.d/               telcordia-1.adsi
codecs.conf              meetme.conf              udptl.conf
console.conf             mgcp.conf                unistim.conf
dbsep.conf               minivm.conf              usbradio.conf
dnsmgr.conf              misdn.conf               users.conf
dsp.conf                 modules.conf             voicemail.conf
dundi.conf               musiconhold.conf         vpb.conf
enum.conf                muted.conf
/dev/pts/0
15:55:25
#ls /etc/asterisk/modules.conf .
./                 .bash_history      .gconf/            .rnd               .viminfo
../                .bash_profile      .l3rc              .sendxmpprc
.aptitude/         .bashrc            .lilalo/           .ssh/
.asterisk_history  .freetalk/         .profile           .vim/
/dev/pts/1
15:55:25
#ls /etc/asterisk/modules.conf .
./                 .bash_history      .gconf/            .rnd               .viminfo
../                .bash_profile      .l3rc              .sendxmpprc
.aptitude/         .bashrc            .lilalo/           .ssh/
.asterisk_history  .freetalk/         .profile           .vim/
/dev/pts/0
15:55:25
#ls /var/
backups/ games/   local/   log/     opt/     spool/
cache/   lib/     lock/    mail/    run/     tmp/
15:55:25
#ls /var/
backups/ games/   local/   log/     opt/     spool/
cache/   lib/     lock/    mail/    run/     tmp/
15:55:25
#ls /var/loc
local/ lock/
15:55:25
#ls /var/loc
local/ lock/
/dev/pts/1
15:55:25
#ls /var/
backups/ games/   local/   log/     opt/     spool/
cache/   lib/     lock/    mail/    run/     tmp/
15:55:25
#ls /var/
backups/ games/   local/   log/     opt/     spool/
cache/   lib/     lock/    mail/    run/     tmp/
15:55:25
#ls /var/loc
local/ lock/
15:55:25
#ls /var/loc
local/ lock/
/dev/pts/0
15:55:25
#ls /var/lib/
alsa/                gcj-4.4/             nfs/                 tex-common/
apt/                 gconf/               ntpdate/             ucf/
aptitude/            gdm3/                openoffice/          udisks/
apt-xapian-index/    ghostscript/         os-prober/           update-notifier/
aspell/              hp/                  pam/                 update-rc.d/
asterisk/            iceweasel/           polkit-1/            upower/
bind/                initramfs-tools/     pycentral/           urandom/
binfmts/             initscripts/         python-support/      usb_modeswitch/
dbus/                insserv/             samba/               usbutils/
defoma/              libuuid/             security/            vim/
dhcp/                logrotate/           sendmail/            x11/
dictionaries-common/ menu-xdg/            sgml-base/           xfonts/
dpkg/                misc/                snmp/                xkb/
ejabberd/            mlocate/             sudo/                xml-core/
exim4/               NetworkManager/      synaptic/
15:55:25
#ls /var/lib/
alsa/                gcj-4.4/             nfs/                 tex-common/
apt/                 gconf/               ntpdate/             ucf/
aptitude/            gdm3/                openoffice/          udisks/
apt-xapian-index/    ghostscript/         os-prober/           update-notifier/
aspell/              hp/                  pam/                 update-rc.d/
asterisk/            iceweasel/           polkit-1/            upower/
bind/                initramfs-tools/     pycentral/           urandom/
binfmts/             initscripts/         python-support/      usb_modeswitch/
dbus/                insserv/             samba/               usbutils/
defoma/              libuuid/             security/            vim/
dhcp/                logrotate/           sendmail/            x11/
dictionaries-common/ menu-xdg/            sgml-base/           xfonts/
dpkg/                misc/                snmp/                xkb/
ejabberd/            mlocate/             sudo/                xml-core/
exim4/               NetworkManager/      synaptic/
/dev/pts/1
15:55:25
#ls /var/lib/
alsa/                gcj-4.4/             nfs/                 tex-common/
apt/                 gconf/               ntpdate/             ucf/
aptitude/            gdm3/                openoffice/          udisks/
apt-xapian-index/    ghostscript/         os-prober/           update-notifier/
aspell/              hp/                  pam/                 update-rc.d/
asterisk/            iceweasel/           polkit-1/            upower/
bind/                initramfs-tools/     pycentral/           urandom/
binfmts/             initscripts/         python-support/      usb_modeswitch/
dbus/                insserv/             samba/               usbutils/
defoma/              libuuid/             security/            vim/
dhcp/                logrotate/           sendmail/            x11/
dictionaries-common/ menu-xdg/            sgml-base/           xfonts/
dpkg/                misc/                snmp/                xkb/
ejabberd/            mlocate/             sudo/                xml-core/
exim4/               NetworkManager/      synaptic/
15:55:25
#ls /var/lib/
alsa/                gcj-4.4/             nfs/                 tex-common/
apt/                 gconf/               ntpdate/             ucf/
aptitude/            gdm3/                openoffice/          udisks/
apt-xapian-index/    ghostscript/         os-prober/           update-notifier/
aspell/              hp/                  pam/                 update-rc.d/
asterisk/            iceweasel/           polkit-1/            upower/
bind/                initramfs-tools/     pycentral/           urandom/
binfmts/             initscripts/         python-support/      usb_modeswitch/
dbus/                insserv/             samba/               usbutils/
defoma/              libuuid/             security/            vim/
dhcp/                logrotate/           sendmail/            x11/
dictionaries-common/ menu-xdg/            sgml-base/           xfonts/
dpkg/                misc/                snmp/                xkb/
ejabberd/            mlocate/             sudo/                xml-core/
exim4/               NetworkManager/      synaptic/
/dev/pts/0
15:56:27
#vim /etc/asterisk/extensions.conf
/dev/pts/1
15:56:27
#vim /etc/asterisk/extensions.conf
/dev/pts/0
15:58:21
#exten => s,n(start-menu),Background(/var/tmp/asterisk/record2) ;glavnoe menu
[2301]
type=friend
secret=password
host=dynamic
[2303]
[2303]304
callerid="Softphone <2304>"
context=gr1
language=ru
[2304]
...
context=gr4
[msk]
[msk]
secret=password
host=dynamic
username=kiev
canreinvite=no
contex=gr4
     xtsdsdsd`uu=gr4                                                              53,7        Внизу
                                                                                  53,16       Внизу
/dev/pts/1
15:58:21
#exten => s,n(start-menu),Background(/var/tmp/asterisk/record2) ;glavnoe menu
[general]
context=default
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
srvlookup=yes
register => kiev:password@192.168.108.1/lvov
register => kiev:password@192.168.101.1/msk
[2301]
...
     xtsdsdsd`uu=gr4                                                              53,7        Внизу
                                                                                  53,16       Внизу
type=friend
secret=password
host=dynamic
username=kiev
canreinvite=no
context=gr4
[msk]
type=friend
/dev/pts/0
16:05:32
#vim /etc/asterisk/extensions.conf
/dev/pts/1
16:05:32
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2126.2057.24045	2011-06-23 17:05:33.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-23 17:07:15.000000000 +0300
@@ -139,6 +139,7 @@
 exten => _3XXX,1,Dial(SIP/msk/${EXTEN},10)
 exten => _21XX,1,Dial(SIP/msk/${EXTEN},10)
 exten => _22XX,1,Dial(SIP/msk/${EXTEN},10)
+exten => _
 
 ;-------------------
 
/dev/pts/0
16:07:26
#vim /etc/asterisk/extensions.conf
/dev/pts/1
16:07:26
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2126.20021.16864	2011-06-23 17:07:30.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-23 17:08:31.000000000 +0300
@@ -139,7 +139,7 @@
 exten => _3XXX,1,Dial(SIP/msk/${EXTEN},10)
 exten => _21XX,1,Dial(SIP/msk/${EXTEN},10)
 exten => _22XX,1,Dial(SIP/msk/${EXTEN},10)
-exten => _
+exten => _380XXXXXXXXX,1,Dial(SIP/msk/${EXTEN},10)
 
 ;-------------------
 
/dev/pts/0
16:08:31
#asterisk -rx 'dialplan reload'
Dialplan reloaded.
/dev/pts/1
16:08:31
#asterisk -rx 'dialplan reload'
Dialplan reloaded.
прошло 37 минут
/dev/pts/3
16:45:32
#vim /etc/asterisk/extensions.conf

Пятница (06/24/11)

/dev/pts/0
08:08:22
#vim /etc/asterisk/extensions.conf
/dev/pts/1
08:08:22
#vim /etc/asterisk/extensions.conf
/dev/pts/0
08:11:01
#rm /etc/asterisk/ext
adsi.conf                extconfig.conf           muted.conf
adtranvofr.conf          extensions.ael           osp.conf
agents.conf              extensions.conf          oss.conf
ais.conf                 extensions.conf.SAVE     phone.conf
alarmreceiver.conf       .extensions.conf.swp     phoneprov.conf
alsa.conf                extensions.lua           queuerules.conf
amd.conf                 extensions_minivm.conf   queues.conf
asterisk.adsi            features.conf            res_config_sqlite.conf
asterisk.conf            festival.conf            res_ldap.conf
cdr_adaptive_odbc.conf   followme.conf            res_odbc.conf
...
cli_aliases.conf         jingle.conf              skinny.conf
cli.conf                 logger.conf              sla.conf
cli_permissions.conf     manager.conf             smdi.conf
codecs.conf              manager.d/               telcordia-1.adsi
console.conf             meetme.conf              udptl.conf
dbsep.conf               mgcp.conf                unistim.conf
dnsmgr.conf              minivm.conf              usbradio.conf
dsp.conf                 misdn.conf               users.conf
dundi.conf               modules.conf             voicemail.conf
enum.conf                musiconhold.conf         vpb.conf
/dev/pts/1
08:11:01
#rm /etc/asterisk/ext
adsi.conf                extconfig.conf           muted.conf
adtranvofr.conf          extensions.ael           osp.conf
agents.conf              extensions.conf          oss.conf
ais.conf                 extensions.conf.SAVE     phone.conf
alarmreceiver.conf       .extensions.conf.swp     phoneprov.conf
alsa.conf                extensions.lua           queuerules.conf
amd.conf                 extensions_minivm.conf   queues.conf
asterisk.adsi            features.conf            res_config_sqlite.conf
asterisk.conf            festival.conf            res_ldap.conf
cdr_adaptive_odbc.conf   followme.conf            res_odbc.conf
...
cli_aliases.conf         jingle.conf              skinny.conf
cli.conf                 logger.conf              sla.conf
cli_permissions.conf     manager.conf             smdi.conf
codecs.conf              manager.d/               telcordia-1.adsi
console.conf             meetme.conf              udptl.conf
dbsep.conf               mgcp.conf                unistim.conf
dnsmgr.conf              minivm.conf              usbradio.conf
dsp.conf                 misdn.conf               users.conf
dundi.conf               modules.conf             voicemail.conf
enum.conf                musiconhold.conf         vpb.conf
/dev/pts/0
08:11:01
#rm /etc/asterisk/.extensions.conf.swp

/dev/pts/1
08:11:01
#rm /etc/asterisk/.extensions.conf.swp

/dev/pts/0
08:11:40
#include => internal
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 5269)
...
9 results found.
  == Using SIP RTP CoS mark 5
    -- Executing [2321@gr3:1] Set("SIP/2303-0000001c", "MON_FILENAME=record-2011-06-24-09-12-15-2321-2303") in new stack
    -- Executing [2321@gr3:2] Monitor("SIP/2303-0000001c", "wav,record-2011-06-24-09-12-15-2321-2303,m") in new stack
    -- Executing [2321@gr3:3] SetMusicOnHold("SIP/2303-0000001c", "") in new stack
[Jun 24 09:12:15] WARNING[7819]: res_musiconhold.c:746 set_moh_exec: SetMusicOnHold application is deprecated and will be removed. Use Set(CHANNEL(musicclass)=...) instead
[Jun 24 09:12:15] WARNING[7819]: res_musiconhold.c:750 set_moh_exec: SetMusicOnHold requires an argument (class)
  == Spawn extension (gr3, 2321, 3) exited non-zero on 'SIP/2303-0000001c'
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
08:11:40
#include => internal
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 5269)
...
9 results found.
  == Using SIP RTP CoS mark 5
    -- Executing [2321@gr3:1] Set("SIP/2303-0000001c", "MON_FILENAME=record-2011-06-24-09-12-15-2321-2303") in new stack
    -- Executing [2321@gr3:2] Monitor("SIP/2303-0000001c", "wav,record-2011-06-24-09-12-15-2321-2303,m") in new stack
    -- Executing [2321@gr3:3] SetMusicOnHold("SIP/2303-0000001c", "") in new stack
[Jun 24 09:12:15] WARNING[7819]: res_musiconhold.c:746 set_moh_exec: SetMusicOnHold application is deprecated and will be removed. Use Set(CHANNEL(musicclass)=...) instead
[Jun 24 09:12:15] WARNING[7819]: res_musiconhold.c:750 set_moh_exec: SetMusicOnHold requires an argument (class)
  == Spawn extension (gr3, 2321, 3) exited non-zero on 'SIP/2303-0000001c'
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/0
08:12:27
#vim /etc/asterisk/extensions.conf
/dev/pts/1
08:12:27
#vim /etc/asterisk/extensions.conf
/dev/pts/0
08:15:15
#vim /etc/asterisk/extensions.conf
/dev/pts/1
08:15:15
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2126.22020.29112	2011-06-24 09:15:16.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-24 09:15:34.000000000 +0300
@@ -139,7 +139,7 @@
 exten => _3XXX,1,Dial(SIP/msk/${EXTEN},10)
 exten => _21XX,1,Dial(SIP/msk/${EXTEN},10)
 exten => _22XX,1,Dial(SIP/msk/${EXTEN},10)
-exten => _380XXXXXXXXX,1,Dial(SIP/msk/${EXTEN},10)
+exten => _380XXXXXXXXX,1,Dial(SIP/msk/${EXTEN},20)
 
 ;-------------------
 
08:17:01
#ls /var/lo
local/ lock/  log/
/dev/pts/0
08:17:01
#ls /var/lo
local/ lock/  log/
08:17:01
#ls /etc/asterisk/mobile
ls: невозможно получить доступ к /etc/asterisk/mobile: Нет такого файла или каталога
/dev/pts/1
08:17:01
#ls /etc/asterisk/mobile
ls: невозможно получить доступ к /etc/asterisk/mobile: Нет такого файла или каталога

Статистика

Время первой команды журнала14:05:58 2011- 6-23
Время последней команды журнала08:17:01 2011- 6-24
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %11.88
Процент синтаксически неверно набранных команд, % 1.98
Суммарное время работы с терминалом *, час 1.59
Количество командных строк в единицу времени, команда/мин 1.06
Частота использования команд
asterisk30|===========================| 27.52%
vim27|========================| 24.77%
ls20|==================| 18.35%
rm4|===| 3.67%
ps2|=| 1.83%
asterisk-jabber-logger2|=| 1.83%
record2)2|=| 1.83%
/etc/init.d/asterisk2|=| 1.83%
glavnoe2|=| 1.83%
freetalk2|=| 1.83%
internal2|=| 1.83%
[2|=| 1.83%
grep2|=| 1.83%
/etc/init.d/ejabberder2|=| 1.83%
~2|=| 1.83%
/charset2|=| 1.83%
include2|=| 1.83%
exten2|=| 1.83%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
  1. В журнал автоматически попадают все команды, данные в любом терминале системы.

  2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

  3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
    $ l s-l
    bash: l: command not found
    

  4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
    $ test 5 -lt 4
    Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

  5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
    $ find / -name abc
    find: /home/devi-orig/.gnome2: Keine Berechtigung
    find: /home/devi-orig/.gnome2_private: Keine Berechtigung
    find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung
    find: /home/devi-orig/.metacity: Keine Berechtigung
    find: /home/devi-orig/.inkscape: Keine Berechtigung
    ^C
    

  6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
    # id
    uid=0(root) gid=0(root) Gruppen=0(root)
    

  7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
    $ vi ~/.bashrc
    2a3,5
    >    if [ -f /usr/local/etc/bash_completion ]; then
    >         . /usr/local/etc/bash_completion
    >        fi
    

  8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
    $ patch ~/.bashrc
    В данном случае изменения применяются к файлу ~/.bashrc

  9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

    Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

  10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

  11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

  12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

  13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

  14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

    $ whoami
    
    user
    
    $ #^ Интересно, кто я?
    
    в журнале это будет выглядеть так:
    $ whoami
    
    user
    
    Интересно, кто я?

  15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

    $ whoami
    
    user
    
    $ cat > /dev/null #^ Интересно, кто я?
    
    Программа whoami выводит имя пользователя, под которым 
    мы зарегистрировались в системе.
    -
    Она не может ответить на вопрос о нашем назначении 
    в этом мире.
    
    В журнале это будет выглядеть так:
    $ whoami
    user
    
    Интересно, кто я?
    Программа whoami выводит имя пользователя, под которым
    мы зарегистрировались в системе.

    Она не может ответить на вопрос о нашем назначении
    в этом мире.
    Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

  16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

  17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
  18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
  19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
    1
        2
    3   
        4
    
    Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

О программе

LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008

$Id$