/l3/users/VetymasK/nt-voip-2011-06/linux6.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 |
|
#asterisk -rvvvvvv
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 linux6 (pid = 16403) ... -- Launched AGI Script /usr/local/bin/festival-script.pl -- <SIP/2201-00000002>AGI Script /usr/local/bin/festival-script.pl completed, returning 0 -- Auto fallthrough, channel 'SIP/2201-00000002' status is 'UNKNOWN' [Jun 22 14:31:15] NOTICE[16447]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-12586.20299.7390 2011-06-22 14:33:46.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-22 14:34:20.000000000 +0300 @@ -38,7 +38,7 @@ exten => 8400,1,Playback(/var/tmp/asterisk/melody) -exten => 8500,1,AGI(/usr/local/bin/check-script.pl) +exten => 8500,1,AGI(/usr/local/bin/check-stream.pl) ;----------------------- |
#asterisk -rvvvvvv
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 linux6 (pid = 16571) ... [Jun 22 14:32:50] WARNING[16620]: res_agi.c:885 launch_script: Failed to execute '/usr/local/bin/check-script.pl': File does not exist. -- Auto fallthrough, channel 'SIP/2201-00000000' status is 'UNKNOWN' -- Unregistered SIP '2203' > Saved useragent "Asterisk PBX 1.6.2.9-2+squeeze2" for peer ny -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#service asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvvvvv
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 linux6 (pid = 16776) ... == Using SIP RTP CoS mark 5 -- Executing [8500@gr3:1] AGI("SIP/2201-00000002", "/usr/local/bin/check-stream.pl") in new stack -- Launched AGI Script /usr/local/bin/check-stream.pl -- AGI Script Executing Application: (Playback) Options: (/usr/share/asterisk/sounds/en/hello-world) -- <SIP/2201-00000002> Playing '/usr/share/asterisk/sounds/en/hello-world.gsm' (language 'ru') -- <SIP/2201-00000002>AGI Script /usr/local/bin/check-stream.pl completed, returning 0 -- Auto fallthrough, channel 'SIP/2201-00000002' status is 'UNKNOWN' > Saved useragent "Asterisk PBX 1.6.2.9-2+squeeze2" for peer ny linux6*CLI> quit Executing last minute cleanups |
#~
#!/usr/bin/perl #make a tts dir inside your sounds dir (as specified below) #adjust the t2wp variable to point to your festival bin directory use Asterisk::AGI; use File::Basename; use Digest::MD5 qw(md5_hex); $AGI = new Asterisk::AGI; open(fileOUT, ">$sounddir"."/say-text-$hash.txt"); print fileOUT "$text"; #my %in close(fileOUT);Parse(); my ($te my $execf=$t2wp."text2wave $sounddir/say-text-$hash.txt -F 8000 -o $wavefile"; system($execf); my $ha unlink($sounddir."/say-text-$hash.txt"); }y $sounddir = "/var/lib/asterisk/sounds/tts"; #$AGI->stream_file('tts/'.basename($wavefile,".wav")); @wavefile =~ s/.wav$//;str.ed.ac.uk/download/festival/1.95/festival/bin/"; $AGI ->stream_file($wavwfile); unless (-f $wavefile) { "/usr/local/bin/festival-script.pl" 32L, 913C |
#asterisk -rvvvvvv
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 linux6 (pid = 16776) ... -- AGI Script Executing Application: (Playback) Options: (/usr/share/asterisk/sounds/en/hello-world) -- <SIP/2201-00000003> Playing '/usr/share/asterisk/sounds/en/hello-world.gsm' (language 'ru') -- <SIP/2201-00000003>AGI Script /usr/local/bin/check-stream.pl completed, returning 0 -- Auto fallthrough, channel 'SIP/2201-00000003' status is 'UNKNOWN' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvvvvv
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 linux6 (pid = 17196) Verbosity was 0 and is now 6 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#service asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#[
[default] [internal] exten => 8000,1,Wait(1) exten => 8000,n,Playback(demo-congrats) [local] exten => _22XX,1,Answer ;------Vicemail----------------ME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}-to${EXTEN}-from${CALLERID(num)}) exten => _22XX,n,Monitor(wav,${MON_FILENAME},m) exten => 8100,1,Voicemailmain()EN},10) exten => _81XX,1,Voicemailmain(22${EXTEN:2}@default) ... "extensions.conf" 77L, 1591C записано exten => _1XXX,1,Dial(SIP/ny/${EXTEN},10) exten => _3XXX,1,Dial(SIP/ny/${EXTEN},10) exten => _23XX,1,Dial(SIP/ny/${EXTEN},10) exten => _24XX,1,Dial(SIP/ny/${EXTEN},10) ;--------------------------------- [gr1] include => internal include => local [gr2] |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-12586.30328.3433 2011-06-22 14:50:50.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-22 14:51:10.000000000 +0300 @@ -38,7 +38,7 @@ exten => 8400,1,Playback(/var/tmp/asterisk/melody) -exten => 8500,1,AGI(/usr/local/bin/festival-script.pl, Welcome to the asterisk voice script.) +exten => 8500,1,AGI(/usr/local/bin/festival-script.pl) ;----------------------- |
#AGI->ReadParse();
#!/usr/bin/perl #make a tts dir inside your sounds dir (as specified below) #adjust the t2wp variable to point to your festival bin directory use Asterisk::AGI; use File::Basename; use Digest::MD5 qw(md5_hex); $AGI = new Asterisk::AGI; #my %input = $AGI->ReadParse(); my ($text)=@ARGV; my $hash = md5_hex($text); ... ~ ~ ~ ~ ~ ~ ~ ~ ~ -- ÐÐÐУÐÐ 4,1 ÐеÑÑ |
#asterisk -rvvvvvv
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 linux6 (pid = 17459) ... -- <SIP/2201-00000001> Playing '/var/lib/asterisk/sounds/tts/tts-d41d8cd98f00b204e9800998ecf8427e.slin' (language 'ru') -- <SIP/2201-00000001>AGI Script /usr/local/bin/festival-script.pl completed, returning 0 -- Auto fallthrough, channel 'SIP/2201-00000001' status is 'UNKNOWN' > Saved useragent "Asterisk PBX 1.6.2.9-2+squeeze2" for peer ny -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#service asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvvvvv
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 linux6 (pid = 17554) ... [Jun 22 15:01:30] NOTICE[17598]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 -- <SIP/2201-00000002>AGI Script /usr/local/bin/festival-script.pl completed, returning -1 [Jun 22 15:04:33] NOTICE[17598]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 [Jun 22 15:07:36] NOTICE[17598]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#[
;; WARNING: It is inherently insecure to run a festival instance as a ;; server, mainly because it exposes the whole system to exploits which ;; can be easily used by attackers to gain access to your ;; computer. This is because of the inherent design of the festival ;; server. Please use it only in a situation where you are sure that ;; you will not be subjected to such an attack, or have adequate ;; security precautions. ;; This file has been provided as an example file for your use, should ;; you wish to run festival as a server. ; Maximum number of clients on the server ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/festival.scm" 44L, 1485C записано |
#vim /etc/festival.scm
--- /tmp/l3-saved-2115.27352.18075 2011-06-22 15:06:58.000000000 +0300 +++ /etc/festival.scm 2011-06-22 15:08:43.000000000 +0300 @@ -28,7 +28,7 @@ ; Secure default: (set! server_access_list '("[^.]+" "127.0.0.1" "localhost")) (language_russian) -;(set! voice_default +(set! voice_default 'voise_msu_ru_nsh_clunits) ; Server deny list (hosts) |
#less /usr/share/doc/festvox-ru/README
|
#cd ..
|
#cd ..
|
#cd ..
|
#cd ..
|
#cd /tmp/
|
#echo пÑÑпÑÑпÑÑ | Ðtext2wave 1.wav
SIOD ERROR: unbound variable : voise_msu_ru_nsh_clunits BACKTRACE: 0: (voise_msu_ru_nsh_clunits) 1: (eval (list voice_default)) 2: (load (path-append datadir "init.scm")) 3: (load "/usr/bin/text2wave") |
#echo пырпырпыр | text2wave
SIOD ERROR: unbound variable : voise_msu_ru_nsh_clunits BACKTRACE: 0: (voise_msu_ru_nsh_clunits) 1: (eval (list voice_default)) 2: (load (path-append datadir "init.scm")) 3: (load "/usr/bin/text2wave") |
#echo пырпырпыр | text2wave 1.wav
SIOD ERROR: could not open file 1.wav BACKTRACE: 0: (f (car l2)) 1: (cons (f (car l2)) r) 2: (set! r (cons (f (car l2)) r)) 3: (while l2 (set! r (cons (f (car l2)) r)) (set! l2 (cdr l2))) 4: (mapcar (lambda (f) (...)) text_files) 5: (main) 6: (load "/usr/bin/text2wave") |
#echo пырпырпыр | text2wave -o 1.wav
|
#cp 1.wav /home/
|
#cp 1.wav /home/1.wav
|
#ls
1.wav asterisk-perl-0.09 asterisk-sounds-ru-gsm-2010-04-28.tar.gz kiev.txt mutt-linux6-1000-6418-21585692393abb6114:q reel_around_the_sun.mp3 splash.mp3 784BBB3010FFCB635E2B6077229E3F1 asterisk-perl-0.09.tar.gz kiev-ru.txt l3-saved-7142.1940.17560 mutt-linux6-1000-6418-71bddf7a93d79815e? sound |
#cp 1.wav /home/user/
|
#echo пÑcatÑkiev-ru.txt | text2wave -o kiev.wav
LTS_Ruleset russian_downcase: no rule matches: LTS_Ruleset: # Ри *here* Ì Ðµ в # |
#cat kiev-ru.txt | text2wave -o kiev.wav
LTS_Ruleset russian_downcase: no rule matches: LTS_Ruleset: # *here* — # |
#cat kiev-ru.txt | text2wave -o kiev.wav
Duration tree extreme for ay 3.12924 Duration tree extreme for ay 3.12924 LTS_Ruleset russian_downcase: no rule matches: LTS_Ruleset: # т ы с *here* . ч # |
#ls
1.wav asterisk-perl-0.09.tar.gz est_18139_00001 l3-saved-7142.1940.17560 reel_around_the_sun.mp3 784BBB3010FFCB635E2B6077229E3F1 asterisk-sounds-ru-gsm-2010-04-28.tar.gz kiev-ru.txt mutt-linux6-1000-6418-21585692393abb6114:q sound asterisk-perl-0.09 est_18139_00000 kiev.txt mutt-linux6-1000-6418-71bddf7a93d79815e? splash.mp3 |
#cat kiev-ru.txt | text2wave -o kiev.wav
Duration tree extreme for ay 3.12924 Duration tree extreme for ay 3.12924 LTS_Ruleset russian_downcase: no rule matches: LTS_Ruleset: # т ы с *here* . ч # |
#cat kiev-ru.txt | text2wave -o kiev.wav
Duration tree extreme for ay 3.12924 Duration tree extreme for ay 3.12924 Duration tree extreme for ay 3.12924 Duration tree extreme for ay 3.12924 Duration tree extreme for ay 3.12924 Duration tree extreme for ay 3.12924 Duration tree extreme for ay 3.12924 |
#ls
1.wav asterisk-perl-0.09.tar.gz est_18139_00001 kiev-ru.txt l3-saved-7142.1940.17560 reel_around_the_sun.mp3 784BBB3010FFCB635E2B6077229E3F1 asterisk-sounds-ru-gsm-2010-04-28.tar.gz est_18156_00000 kiev.txt mutt-linux6-1000-6418-21585692393abb6114:q sound asterisk-perl-0.09 est_18139_00000 est_18156_00001 kiev.wav mutt-linux6-1000-6418-71bddf7a93d79815e? splash.mp3 |
#cp kiev.wav /home/user/
|
#[
#make a tts dir inside your sounds dir (as specified below) " Sorted by name use Asterisk::AGI; use File::Basename; use Digest::MD5 qw(md5_hex); c $AGI = new Asterisk::AGI; #my %input = $AGI->ReadParse(); lib/ my $text = `cat /tmp/kiev-ru.txt`; ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "/usr/local/bin/festival-script.pl" 38L, 1047C записано |
#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 linux6 (pid = 1614) ... [Jun 22 15:47:31] NOTICE[1736]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 == Spawn extension (gr2, 2201, 4) exited non-zero on 'SIP/2203-00000004' == Using SIP RTP CoS mark 5 [Jun 22 15:47:59] NOTICE[1736]: chan_sip.c:20281 handle_request_invite: Call from '2203' to extension '2304' rejected because extension not found in context 'gr2'. -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-1996.29802.4007 2011-06-22 15:48:30.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-06-22 15:48:54.000000000 +0300 @@ -33,7 +33,7 @@ host=dynamic user=2203 callerid="SoftPhone <2203>" -context=gr2 +context=gr333 [ny] type=friend |
#servise asterisk restart
bash: servise: команда не найдена |
#servise asterisk restart
bash: servise: команда не найдена |
#service asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#service asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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 linux6 (pid = 2076) Verbosity was 0 and is now 3 == Using SIP RTP CoS mark 5 [Jun 22 15:49:19] NOTICE[2120]: chan_sip.c:20281 handle_request_invite: Call from '2203' to extension '2304' rejected because extension not found in context 'gr333'. -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#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 linux6 (pid = 2235) ... [Jun 22 16:05:44] NOTICE[2279]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 [Jun 22 16:08:47] NOTICE[2279]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 [Jun 22 16:11:50] NOTICE[2279]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 [Jun 22 16:14:53] NOTICE[2279]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#apt-cache search kill
and - Auto Nice Daemon asr-manpages - alt.sysadmin.recovery manual pages backupninja - lightweight, extensible meta-backup system convirt - A graphical Xen management tool dbconfig-common - common framework for packaging database applications junior-typing - Debian Jr. typing docbook-simple - simplified DocBook XML Doctype and css stylesheets dsniff - Various tools to sniff network traffic for cleartext insecurities emacs-goodies-el - Miscellaneous add-ons for Emacs libethos-1.0-0 - GObject library for application plugins - shared libraries ... xsoldier - shoot 'em up game with the "not shooting" bonus junior-system - Утилиты для Debian Jr. System procps - утилиты для файловой системы /proc pslist - инструмент контроля за процессами и их наследниками psmisc - утилиты, использующие файловую систему proc sysvinit-utils - аналоги утилит System-V viruskiller - игра про нашествие вирусов на ваш компьютер x11-utils - утилиты X11 spip - website engine for publishing tinyproxy - A lightweight, non-caching, optionally anonymizing http proxy |
#apt-cache search verkill
docbook-simple - simplified DocBook XML Doctype and css stylesheets flexbackup - Flexible backup tool for small to medium sized installations libdata-dumper-concise-perl - module for more shorter Data::Dumper-like output tinyproxy - A lightweight, non-caching, optionally anonymizing http proxy |
#vim /etc/asterisk/extensions.conf
|
#ssh user@192.168.106.253
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ... ru-burunduk.txt 100% 5021 4.9KB/s 00:00 ru-burunduk.txt 100% 5021 4.9KB/s 00:00 [root@linux0:tmp]# ssh linux1 ls /usr/local/bin/ check-stream.pl festival-script.pl l3-agent l3-config l3script [root@linux0:tmp]# scp linux1:/usr/local/bin/ ------------------------------------------------------------------------------------------------------ |
#text2wave -o null /tmp/.
./ ../ .ICE-unix/ .X11-unix/ |
#ls
sent |
#cd tmp
bash: cd: tmp: Нет такого файла или каталога |
#cd ..
|
#cd ..
|
#cd tmp
|
#ls
ru-asterisk.txt |
#vim /etc/asterisk/extensions.conf
|
#[local]
[default] [internal] exten => 8000,1,Wait(1) exten => 8000,n,Playback(demo-congrats) [local] exten => _22XX,1,Answer ;------Vicemail----------------ME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}-to${EXTEN}-from${CALLERID(num)}) exten => _22XX,n,Monitor(wav,${MON_FILENAME},m) exten => 8100,1,Voicemailmain()EN},10) exten => _81XX,1,Voicemailmain(22${EXTEN:2}@default) ... exten => _1XXX,1,Dial(SIP/ny/${EXTEN},10) exten => _3XXX,1,Dial(SIP/ny/${EXTEN},10) exten => _23XX,1,Dial(SIP/ny/${EXTEN},10) exten => _24XX,1,Dial(SIP/ny/${EXTEN},10) ;--------------------------------- [gr1] include => internal include => local [gr2] 7,0-1 Наверху |
#[local]
[xten => ]81XX,1,Voicemailmain(22${EXTEN:2}@default) [ ;-----golos menu---------2202&SIP/2203,10) [local] [local]> _82XX,1,Wait(1) exten => _82XX,n,Playback(please-enter-your&vm-message) exten => _82XX,n,Wait(1) exten => 8400,1,Playback(/var/tmp/asterisk/melody)EXTEN:2}:gsm,2) exten => _82XX,n,Playback(beep) exten => 8500,1,AGI(/usr/local/bin/festival-script.pl) ... 03,1,AGI(/usr/local/bin/festival-script.pl,/var/tmp/ru-burunduki.txt) exten => _23XX,1,Dial(SIP/ny/${EXTEN},10) exten => _24XX,1,Dial(SIP/ny/${EXTEN},10) ;--------------------------------- [gr1] include => internal include => local include => internal include => local "/etc/asterisk/extensions.conf" 80L, 1807C записано |
#cd /var/tmp/
|
#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 linux6 (pid = 2693) ... -- <SIP/2201-0000000a>AGI Script /usr/local/bin/festival-script.pl completed, returning 0 -- Auto fallthrough, channel 'SIP/2201-0000000a' status is 'UNKNOWN' [Jun 22 16:17:56] NOTICE[2737]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 [Jun 22 16:20:59] NOTICE[2737]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#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 linux6 (pid = 2868) ... -- AGI Script Executing Application: (Playback) Options: (/var/lib/asterisk/sounds/tts/tts-26a0d669af6c62d47102532b5e0791af) -- <SIP/2201-00000011> Playing '/var/lib/asterisk/sounds/tts/tts-26a0d669af6c62d47102532b5e0791af.slin' (language 'ru') -- <SIP/2201-00000011>AGI Script /usr/local/bin/festival-script.pl completed, returning -1 [Jun 22 16:37:13] NOTICE[2912]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#[local]
asterisk grub.swp ru-asterisk.txt ru-belka.txt ru-burunduk.txt ru-kiev.txt |
#cd /var/tmp
|
#ls
asterisk grub.swp ru-asterisk.txt ru-belka.txt ru-burunduk.txt ru-kiev.txt |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1996.23556.11208 2011-06-22 16:37:05.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-22 16:37:20.000000000 +0300 @@ -39,7 +39,7 @@ exten => 8400,1,Playback(/var/tmp/asterisk/melody) exten => 8500,1,AGI(/usr/local/bin/festival-script.pl,/var/tmp/ru-kiev.txt) -exten => 8501,1,AGI(/usr/local/bin/festival-script.pl,/var/tmp/ru-belko.txt) +exten => 8501,1,AGI(/usr/local/bin/festival-script.pl,/var/tmp/ru-belka.txt) exten => 8502,1,AGI(/usr/local/bin/festival-script.pl,/var/tmp/ru-asterisk.txt) exten => 8503,1,AGI(/usr/local/bin/festival-script.pl,/var/tmp/ru-burunduk.txt) |
#cd /var/tmp/
asterisk/ grub.swp ru-asterisk.txt ru-belka.txt ru-burunduk.txt ru-kiev.txt |
#cd /var/tmp/asterisk/
|
#ls
melody.gsm record01.gsm record03.gsm record05.gsm record07.gsm record09.gsm record1.gsm splash.gsm melody.mp3 record02.gsm record04.gsm record06.gsm record08.gsm record11.gsm reel_around_the_sun.gsm |
#cd /var/tmp/asterisk/
|
#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 linux6 (pid = 3215) Verbosity was 0 and is now 3 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#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 linux6 (pid = 3320) Verbosity was 0 and is now 3 == Using SIP RTP CoS mark 5 -- Executing [8500@gr3:1] Goto("SIP/2201-00000001", "Menu,s,1") in new stack -- Goto (Menu,s,1) [Jun 22 16:53:59] WARNING[3370]: pbx.c:4369 __ast_pbx_run: Channel 'SIP/2201-00000001' sent into invalid extension 's' in context 'Menu', but no invalid handler -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#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 linux6 (pid = 3417) ... -- Executing [8500@gr3:1] Goto("SIP/2201-00000000", "Menu,s,1") in new stack -- Goto (Menu,s,1) [Jun 22 16:54:54] WARNING[3466]: pbx.c:4369 __ast_pbx_run: Channel 'SIP/2201-00000000' sent into invalid extension 's' in context 'Menu', but no invalid handler [Jun 22 16:55:31] NOTICE[3461]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#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 linux6 (pid = 3512) ... -- Timeout on SIP/2201-00000007, continuing... -- Executing [s@menu:8] BackGround("SIP/2201-00000007", "/var/tmp/asterisk/record09") in new stack -- <SIP/2201-00000007> Playing '/var/tmp/asterisk/record09.gsm' (language 'ru') -- Auto fallthrough, channel 'SIP/2201-00000007' status is 'UNKNOWN' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#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 linux6 (pid = 3886) Verbosity was 0 and is now 3 -- <SIP/2201-00000001>AGI Script /usr/local/bin/festival-script.pl completed, returning -1 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vim /var/lo
|
#vim /var/lo
|
#vim /var/loc
|
#vim /var/local/bin
|
#vim /usr/local/bin/
|
#include => local
[default] [internal] exten => 8000,1,Wait(1) exten => 8000,n,Playback(demo-congrats) [local] exten => _22XX,1,Answer exten => _22XX,n,Set(MON_FILENAME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}-to${EXTEN}-from${CALLERID(num)}) exten => _22XX,n,Monitor(wav,${MON_FILENAME},m) exten => _22XX,n,Dial(SIP/${EXTEN},10) ; glavnoe menu ... exten => s,n,WaitExten(60) exten => s,n,Goto(menu,s,start-menu) [ ] [submenu] exten => 9,n,Goto(menu,s,start-menu) [ ] [ ;------Vicemail---------------- "/etc/asterisk/extensions.conf" 120L, 2981C записано exten => _81XX,1,Voicemailmain(22${EXTEN:2}@default) |
#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 linux6 (pid = 4007) ... [Jun 22 17:18:17] NOTICE[4066]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.106.200 -- <SIP/2201-00000002>AGI Script /usr/local/bin/festival-script.pl completed, returning 0 -- Executing [s@kievmenu:2] WaitExten("SIP/2201-00000002", "60") in new stack [Jun 22 17:18:29] WARNING[4066]: pbx.c:4415 __ast_pbx_run: Invalid extension '9', but no rule 'i' in context 'kievmenu' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#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 linux6 (pid = 4114) ... -- Goto (menu,s,4) -- Executing [s@menu:4] BackGround("SIP/2201-00000000", "/var/tmp/asterisk/record02") in new stack -- <SIP/2201-00000000> Playing '/var/tmp/asterisk/record02.gsm' (language 'ru') == Spawn extension (menu, s, 4) exited non-zero on 'SIP/2201-00000000' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#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 linux6 (pid = 4211) ... -- Timeout on SIP/2201-00000003, continuing... -- Executing [s@menu:8] BackGround("SIP/2201-00000003", "/var/tmp/asterisk/record09") in new stack -- <SIP/2201-00000003> Playing '/var/tmp/asterisk/record09.gsm' (language 'ru') -- Auto fallthrough, channel 'SIP/2201-00000003' status is 'UNKNOWN' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#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 linux6 (pid = 4339) ... == Using SIP RTP CoS mark 5 [Jun 22 17:27:50] WARNING[4420]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) == Everyone is busy/congested at this time (1:0/0/1) -- Auto fallthrough, channel 'SIP/2203-00000001' status is 'CHANUNAVAIL' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1996.31672.7225 2011-06-22 17:27:56.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-22 17:28:19.000000000 +0300 @@ -38,7 +38,7 @@ exten => 2,1,Goto(submenu,s,1) exten => 3,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/ru-asterisk.txt) exten => 4,1,Playback(/var/tmp/asterisk/record06) -exten => 4,n,Dial(SIP/2202) +exten => 4,n,Dial(SIP/2201) exten => 5,1,Goto(system-menu,s,1) exten => 9,1,Goto(menu,s,start-menu) exten => 0,1,Playback(/var/tmp/asterisk/record04) |
#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 linux6 (pid = 4467) ... -- SIP/2201-00000005 is ringing == Spawn extension (menu, 4, 2) exited non-zero on 'SIP/2203-00000004' [Jun 22 17:31:44] NOTICE[4511]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 [Jun 22 17:34:47] NOTICE[4511]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#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 linux6 (pid = 4757) ... -- <SIP/2201-00000000> Playing '/var/tmp/asterisk/record03.gsm' (language 'ru') [Jun 22 17:42:14] NOTICE[4806]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.106.200 [Jun 22 17:42:17] WARNING[4806]: pbx.c:4415 __ast_pbx_run: Invalid extension '1', but no rule 'i' in context 'animalmenu' [Jun 22 17:42:19] NOTICE[4801]: chan_sip.c:11696 sip_reg_timeout: -- Registration for 'la@192.168.105.1' timed out, trying again (Attempt #1) -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
Время первой команды журнала | 13:26:34 2011- 6-22 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:35:35 2011- 6-22 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.15 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.53 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ 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 |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008