/l3/users/2014-11-nt-voip/nt-voip/debian1/root :1 :2 :3 :4 |
|
#ls /tmp/
asterisk gnash-cookies.UaiFJy queen.gsm gnash-cookies.0kyyXq gnash-cookies.XsvQNx queen.wav gnash-cookies.F0xloe gnash-cookies.YaOiDY someone-called-8300 gnash-cookies.klU9ui orbit-user someone-called-8301 gnash-cookies.tNRjcQ pulse-mZZS8BsnDrTe ssh-vHNjewC1NgIA gnash-cookies.U04YbB pulse-pNIbyoKUVy2b tracker-user |
#~
# sbin:/bin" # See the man page for details on how to write a sudoers file. # # Host alias specification Defaults env_reset Defaults mail_badpass # User alias specification Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:// # Cmnd alias specification ... # Allow members of group sudo to execute any command asterisk ALL=(ALL) NOPASSWD: /etc/init.d/sendmail %sudo ALL=(ALL:ALL) ALL ~ ~ ~ ~ ~ ~ "/etc/sudoers" 30L, 721C written |
#ps aux | grep send
root 24857 0.0 0.0 74616 2540 ? Ss 17:19 0:00 sendmail: MTA: accepting connections root 24902 0.0 0.0 7836 876 pts/5 S+ 17:20 0:00 grep send |
#ps aux | grep send
root 24966 0.0 0.0 74620 2548 ? Ss 17:20 0:00 sendmail: MTA: accepting connections root 24982 0.0 0.0 7836 872 pts/5 S+ 17:20 0:00 grep send |
#apt-get install festival festvox-ru
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: alsa-base alsa-utils esound-common festlex-cmu festlex-poslex festvox-kallpc16k libaudiofile1 libesd0 libestools2.1 Suggested packages: alsa-oss oss-compat pidgin-festival festival-freebsoft-utils pulseaudio-esound-compat The following NEW packages will be installed: ... Setting up esound-common (0.2.41-10) ... Setting up libesd0:amd64 (0.2.41-10+b1) ... Setting up libestools2.1:amd64 (1:2.1~release-5) ... Setting up alsa-utils (1.0.25-4) ... Setting up festival (1:2.1~release-5.1) ... Processing triggers for sgml-base ... Setting up festvox-ru (0.5-5) ... Setting up festlex-cmu (1.4.0-6) ... Setting up festlex-poslex (1.4.0-5) ... Setting up festvox-kallpc16k (1.4.0-5) ... |
#vim /var/tmp/hello-en.txt
--- /dev/null 2014-11-27 11:31:41.601114983 +0200 +++ /var/tmp/hello-en.txt 2014-11-27 09:51:32.556307602 +0200 @@ -0,0 +1,4 @@ + + + +Australia team doctor Peter Brukner said the 25-year-old left-hander never regained consciousness. |
#vim /var/tmp/hello-ru.txt
--- /dev/null 2014-11-27 11:31:41.601114983 +0200 +++ /var/tmp/hello-ru.txt 2014-11-27 09:53:20.192308870 +0200 @@ -0,0 +1,2 @@ + +ÐовоизбÑаннÑе наÑоднÑе депÑÑаÑÑ 27 ноÑбÑÑ ÑобеÑÑÑÑÑ Ð½Ð° ÑоÑжеÑÑвенное заÑедание по ÑлÑÑÐ°Ñ Ð¿ÑинÑÑÐ¸Ñ Ð¿ÑиÑÑги и оÑкÑÑÑÐ¸Ñ Ð¿ÐµÑвой ÑеÑÑии |
#cat /var/tmp/hello-ru.txt
Новоизбранные народные депутаты 27 ноября соберутся на торжественное заседание по случаю принятия присяги и открытия первой сессии |
#play /tmp/hello-en.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable play FAIL formats: can't open input file `/tmp/hello-en.wav': No such file or directory |
#play /tmp/hello-en.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable play FAIL formats: can't open input file `/tmp/hello-en.wav': No such file or directory |
#play /tmp/hello-ru.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable play FAIL formats: can't open input file `/tmp/hello-ru.wav': No such file or directory |
#cpall /var/tmp/burunduki.txt /var/tmp/
bash: cpall: command not found |
#cat /var/tmp/text-en.txt | text2wave
cat: /var/tmp/text-en.txt: No such file or directory |
#cat /var/tmp/text-en.txt | text2wave > /tmp/text-en.wav
cat: /var/tmp/text-en.txt: No such file or directory |
#cat /var/tmp/hello-en.txt | text2wave > /tmp/hello-en.wav
|
#play /tmp/hello-en.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable /tmp/hello-en.wav: File Size: 203k Bit Rate: 256k Encoding: Signed PCM Channels: 1 @ 16-bit Samplerate: 16000Hz Replaygain: off Duration: 00:00:06.34 In:100% 00:00:06.34 [00:00:00.00] Out:101k [ | ] Clip:0 Done. |
#mkdir /var/lib/asterisk/sounds/tts
|
#chown asterisk:asterisk /var/lib/asterisk/sounds/tts
|
#/usr/local/bin/asterisk-festival.pl Добрый вечер
EXEC Playback "/var/lib/asterisk/sounds/tts/tts-e018c01dc67ef7dcd591446405358f64" EXEC Playback "/var/lib/asterisk/sounds/tts/tts-e018c01dc67ef7dcd591446405358f64" |
#ls -l /var/tmp/b*txt
-rw-r--r-- 1 root root 7077 Nov 27 10:00 /var/tmp/belki.txt -rw-r--r-- 1 root root 8155 Nov 27 10:00 /var/tmp/burunduki.txt |
#/usr/local/bin/asterisk-festival.pl Добрый вечер
[ ] exten => 8300,1,System(touch /tmp/someone-called-8300) [ ] [xten => ]301,1,System(sh -c "echo${CALLERID(num)} > /tmp/someone-called-8301") exten => 8302,1,System(sudo /etc/init.d/sendmail restart) include => parkedcalls [local] exten => 8403,1,AGI(/usr/local/bin/asterisk-festival.pl /var/tmp/belki.txt) exten => 8404,1,AGI(/usr/local/bin/asterisk-festival.pl /var/tmp/burunduki.txt) exten => _1191,1,NoOp(Conferences for external users) exten => _1191,n,MeetMe(10${EXTEN:3}) CH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")}) exten => _11[0-8]X,n,Monitor(wav,${CALLFILENAME},m) exten => _11[0-8]X,n,Dial(SIP/${EXTEN},10,tTkK) exten => _11[0-8]X,n,VoiceMail(${EXTEN}@default) exten => _11[0-8]X,1,NoOp(Local Phones) exten => _11[0-8]X,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOO [national] "/etc/asterisk/extensions.conf" 70L, 1643C written |
#/usr/local/bin/asterisk-festival.pl Добрый вечер
play /tmp/hello-en.wav asterisk -rvvv Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 ... -- Added extension '700' priority 1 to parkedcalls -- Registered extension context 'demo'; registrar: pbx_lua -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config -- Including switch 'Lua/' in context 'demo' -- Time to scan old dialplan and merge leftovers back into the new: 0.001856 sec -- Time to restore hints and swap in new dialplan: 0.000005 sec -- Time to delete the old dialplan: 0.000085 sec -- Total time merge_contexts_delete: 0.001946 sec debian1*CLI> quit Executing last minute cleanups |
#tmp/b*txt
|
#/usr/local/bin/asterisk-festival.pl Добрый вечер
play /tmp/hello-ru.wav hello-ru.txt | text2wave -eval '(voice_msu_ru_nsh_clunits)' > /tmp/hello-ru.wavllo-en.wav clunits)' > /tmp/text-ru.wavmp/text-ru.txt | text2wave -eval '(voice_msu_ru_nsh_c |
#/usr/local/bin/asterisk-festival.pl Добрый вечер
|
#/usr/local/bin/asterisk-festival.pl Добрый вечер
play /tmp/hello-ru.wav hello-ru.txt | text2wave -eval '(voice_msu_ru_nsh_clunits)' > /tmp/hello-ru.wavllo-en.wav clunits)' > /tmp/text-ru.wavmp/text-ru.txt | text2wave -eval '(voice_msu_ru_nsh_c |
#tmp/b*txt
[xten =>]8301,1,System(sh -c "echo${CALLERID(num)} > /tmp/someone-called-8301") [xten => ]302,1,System(sudo /etc/init.d/sendmail restart) [ ] exten => 8403,1,AGI(/usr/local/bin/asterisk-festival.pl /var/tmp/belki.txt) exten => 8404,1,AGI(/usr/local/bin/asterisk-festival.pl /var/tmp/burunduki.txt) [local]sterisk/extensions.conf" 70L, 1643C I( l,/var/tmp/belki.txt) exten => _1191,1,NoOp(Conferences for external users) l,/var/tmp/burunduki.txt) exten => _1191,n,MeetMe(10${EXTEN:3}) exten => _1191,n,Hangup CH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")}) exten => 1192,1,Dial(SIP/1101&SIP/1102) exten => _11[0-8]X,n,Monitor(wav,${CALLFILENAME},m) exten => _11[0-8]X,n,Dial(SIP/${EXTEN},10,tTkK) ; не было таймаута в Dial exten => _11[0-8]X,n,VoiceMail(${EXTEN}@default) exten => _11[0-8]X,1,NoOp(Local Phones) exten => _11[0-8]X,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOO [national] "/etc/asterisk/extensions.conf" 70L, 1643C written |
#chown asterisk:asterisk /var/lib/asterisk/sounds/tts
|
#/usr/local/bin/asterisk-festival.pl Добрый вечер
|
#tmp/b*txt
|
#/usr/local/bin/asterisk-festival.pl Добрый вечер
play /tmp/hello-ru.wav sox -t wav /thello-ru.txt | text2wave -eval '(voice_msu_ru_nsh_clunits)' > /tmp/hello-ru.wav clunits)' > /tmp/text-ru.wavmp/text-ru.txt | text2wave -eval '(voice_msu_ru_nsh_c |
#tmp/b*txt
xrandr xrandr: Failed to get size of gamma for output default Screen 0: minimum 640 x 400, current 1280 x 1024, maximum 1280 x 1024 default connected 1280x1024+0+0 0mm x 0mm 1280x1024 0.0* 1280x960 0.0 1024x768 0.0 800x600 0.0 640x480 0.0 720x400 0.0 |
#grep Record /etc/asterisk/extensions.conf
exten => _81XX,1,Record(/var/tmp/asterisk/record00:gsm,3) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3807.175.12074 2014-11-27 12:09:35.600405631 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 12:14:23.848409040 +0200 @@ -21,7 +21,7 @@ exten => 3,n,Read(ORDER) exten => 3,n,Playback(/var/tmp/asterisk/record07 exten => 3,n,SayDigits(${ORDER})) -exten => 3,n,Playback(/var/tmp/asterisk/record010) +exten => 3,n,Playback(/var/tmp/asterisk/record10) exten => 4,1,Queue(queue1) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3807.6369.14955 2014-11-27 12:17:07.144410975 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 12:23:52.160415772 +0200 @@ -1,6 +1,21 @@ [default] +[submenu] + + +exten => s,1,Backround(/var/tmp/asterisk/record11) +exten => s,n,WaitExten(3) +exten => s,n,Background(/var/tmp/asterisk/record03) +exten => s,n,WaitExten(3) +exten => s,n,Background(/var/tmp/asterisk/record04) +exten => s,n,Hangup + +exten => 1,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/asterisk/belki.txt) +exten => 2,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/asterisk/burunduki.txt) + +exten => 0,1,Goto(menu,1,start) + [menu] exten => s,1.Answer @@ -24,6 +39,8 @@ exten => 3,n,Playback(/var/tmp/asterisk/record10) exten => 4,1,Queue(queue1) +exten => 5,1,Goto(submenu,1,1) + exten => 0,1,Goto(s,start) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3807.30329.20470 2014-11-27 12:30:40.784420607 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 12:32:35.184421959 +0200 @@ -19,7 +19,7 @@ exten => 3,1,Playback(/var/tmp/asterisk/record05) exten => 3,n,Read(ORDER) -exten => 3,n,Playback(/var/tmp/asterisk/record07 +exten => 3,n,Playback(/var/tmp/asterisk/record07) exten => 3,n,SayDigits(${ORDER})) exten => 3,n,Playback(/var/tmp/asterisk/record10) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3807.28099.20378 2014-11-27 13:01:54.404442776 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 13:05:42.304445480 +0200 @@ -24,8 +24,6 @@ exten => 3,n,Playback(/var/tmp/asterisk/record10) exten => 4,1,Queue(queue1) -exten => 5,1,Goto(submenu,1,1) - exten => 0,1,Goto(s,start) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3807.16674.28423 2014-11-27 13:06:18.404445906 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 13:07:29.696446748 +0200 @@ -20,7 +20,7 @@ exten => 3,1,Playback(/var/tmp/asterisk/record05) exten => 3,n,Read(ORDER) exten => 3,n,Playback(/var/tmp/asterisk/record07) -exten => 3,n,SayDigits(${ORDER})) +exten => 3,n,SayDigits(${ORDER}) exten => 3,n,Playback(/var/tmp/asterisk/record10) exten => 4,1,Queue(queue1) |
#vim /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3807.3583.2026 2014-11-27 13:11:54.268449883 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 13:12:36.360450381 +0200 @@ -3,7 +3,8 @@ [menu] -exten => s,1.Answer +; была . вместо , +exten => s,1,Answer exten => s,n,Background(/var/tmp/asterisk/record01) exten => s,n,WaitExten(1) exten => s,n(start),Background(/var/tmp/asterisk/record02) |
#vim /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/extensions.conf
|
#ls -ls /var/tmp/
total 28 4 drwxr-xr-x 2 asterisk asterisk 4096 Nov 27 13:15 asterisk 8 -rw-r--r-- 1 root root 7077 Nov 27 10:00 belki.txt 8 -rw-r--r-- 1 root root 8155 Nov 27 10:00 burunduki.txt 4 -rw-r--r-- 1 root root 97 Nov 27 09:59 hello-en.txt 4 -rw-r--r-- 1 root root 242 Nov 27 10:00 hello-ru.txt |
#ls -ls /var/tmp/asterisk/
total 16 12 -rw-rw---- 1 asterisk asterisk 11022 Nov 27 13:15 record00.gsm 4 -rw-rw---- 1 asterisk asterisk 1485 Nov 25 12:24 record02.gsm |
#vim /etc/asterisk/extensions.conf
|
#ls -ls /var/tmp/asterisk/
total 28 12 -rw-rw---- 1 asterisk asterisk 11022 Nov 27 13:15 record00.gsm 8 -rw-rw---- 1 asterisk asterisk 5313 Nov 27 13:27 record01.gsm 4 -rw-rw---- 1 asterisk asterisk 1485 Nov 25 12:24 record02.gsm 4 -rw-rw---- 1 asterisk asterisk 2739 Nov 27 13:26 record05.gsm |
#ls -ls /var/tmp/asterisk/
total 64 12 -rw-rw---- 1 asterisk asterisk 11022 Nov 27 13:15 record00.gsm 8 -rw-rw---- 1 asterisk asterisk 5313 Nov 27 13:27 record01.gsm 24 -rw-rw---- 1 asterisk asterisk 22341 Nov 27 13:29 record02.gsm 8 -rw-rw---- 1 asterisk asterisk 4455 Nov 27 13:30 record03.gsm 8 -rw-rw---- 1 asterisk asterisk 4686 Nov 27 13:30 record04.gsm 4 -rw-rw---- 1 asterisk asterisk 2739 Nov 27 13:26 record05.gsm |
#ls -ls /var/tmp/asterisk/
total 88 12 -rw-rw---- 1 asterisk asterisk 11022 Nov 27 13:15 record00.gsm 8 -rw-rw---- 1 asterisk asterisk 5313 Nov 27 13:27 record01.gsm 24 -rw-rw---- 1 asterisk asterisk 22341 Nov 27 13:29 record02.gsm 8 -rw-rw---- 1 asterisk asterisk 4455 Nov 27 13:30 record03.gsm 8 -rw-rw---- 1 asterisk asterisk 4686 Nov 27 13:30 record04.gsm 4 -rw-rw---- 1 asterisk asterisk 3201 Nov 27 13:32 record05.gsm 4 -rw-rw---- 1 asterisk asterisk 3036 Nov 27 13:32 record06.gsm 4 -rw-rw---- 1 asterisk asterisk 2739 Nov 27 13:33 record07.gsm 8 -rw-rw---- 1 asterisk asterisk 4587 Nov 27 13:32 record08.gsm 4 -rw-rw---- 1 asterisk asterisk 1815 Nov 27 13:33 record09.gsm 4 -rw-rw---- 1 asterisk asterisk 2739 Nov 27 13:33 record70.gsm |
#ls /var/lib/asterisk/
astdb moh sounds sqlite.db |
#ls /var/lib/asterisk/astdb
/var/lib/asterisk/astdb |
#file /var/lib/asterisk/astdb
/var/lib/asterisk/astdb: Berkeley DB 1.85/1.86 (Btree, version 3, native byte-order) |
#asterisk -rx "database put order 1 9"
Updated database successfully |
#asterisk -rx "database put order 2 10"
Updated database successfully |
#asterisk -rx 'get database get order 5'
No such command 'get database get order 5' (type 'core show help get database' for other possible commands) |
#asterisk -rx 'database get order 5'
Value: 10 |
#asterisk -rx 'database get order 6'
Value: 9 |
#asterisk -rx 'database get order 7'
Value: 10 |
#asterisk -rx "database put order 2 10"
exten => 8001,1,VoiceMailMain() exten => _83XX,1,Voik(MailMain(11${EXTEN:2}@dd${DB(order/${ORDER})}) exten => _801X,1,M(queue1)${EXTEN:3}) ( ) exten => 8300,1,System(touch /tmp/someone-called-8300) (2) exten => 8301,1,S(stem(sh)-c "echo${CALLERID(num)} > /tmp/someone-called-8301") [xten => ]302,1,System(sudo /etc/init.d/sendmail restart) exten => 8403,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/belki.txt) exten => 8404,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/burunduki.txt) exten => 8405,1,Goto(menu,s,1) [local] [local] [local]> _1191,1,NoOp(Conferences for external users) exten => _1191,n,MeetMe(10${EXTEN:3}) exten => _1191,n,Hangup "/etc/asterisk/extensions.conf" 102L, 2600C written |
#asterisk -rx "database put order 2 10"
asterisk -rvvv Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 ... -- Added extension 's' priority 1 to app_dial_gosub_virtual_context -- Registered extension context 'app_queue_gosub_virtual_context'; registrar: app_queue -- merging incls/swits/igpats from old(app_queue_gosub_virtual_context) to new(app_queue_gosub_virtual_context) context, registrar = pbx_config -- Added extension 's' priority 1 to app_queue_gosub_virtual_context -- Time to scan old dialplan and merge leftovers back into the new: 0.000556 sec -- Time to restore hints and swap in new dialplan: 0.000003 sec -- Time to delete the old dialplan: 0.000183 sec -- Total time merge_contexts_delete: 0.000742 sec debian1*CLI> quit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian1 (pid = 2547) ... -- <SIP/1101-0000004a> Playing '/var/tmp/asterisk/record07.gsm' (language 'ru') -- Executing [3@menu:4] SayDigits("SIP/1101-0000004a", "8") in new stack -- <SIP/1101-0000004a> Playing 'digits/8.gsm' (language 'ru') -- Executing [3@menu:5] Playback("SIP/1101-0000004a", "/var/tmp/asterisk/record9") in new stack [Nov 27 13:59:59] WARNING[8520]: file.c:663 ast_openstream_full: File /var/tmp/asterisk/record9 does not exist in any format [Nov 27 13:59:59] WARNING[8520]: file.c:958 ast_streamfile: Unable to open /var/tmp/asterisk/record9 (format 0x4 (ulaw)): No such file or directory [Nov 27 13:59:59] WARNING[8520]: app_playback.c:475 playback_exec: ast_streamfile failed on SIP/1101-0000004a for /var/tmp/asterisk/record9 -- Auto fallthrough, channel 'SIP/1101-0000004a' status is 'UNKNOWN' debian1*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3807.10665.28792 2014-11-27 14:07:22.932489278 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 14:12:11.548492693 +0200 @@ -22,7 +22,11 @@ exten => 3,n,Read(ORDER) exten => 3,n,Playback(/var/tmp/asterisk/record07) exten => 3,n,SayDigits(${ORDER}) -exten => 3,n,Playback(/var/tmp/asterisk/record${DB(order/${ORDER})}) + +exten => 3,n,GotoIf($[${DB(order/${ORDER})} = ""]?unknown_order) +exten => 3,n,Playback(/var/tmp/asterisk/record0${DB(order/${ORDER})}) +exten => 3,n,Hangup +exten => 3,n(unknown_order),Playback(/var/tmp/asterisk/record10) exten => 4,1,Queue(queue1) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3807.32211.22126 2014-11-27 14:15:42.748495194 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 14:16:51.204496006 +0200 @@ -23,7 +23,7 @@ exten => 3,n,Playback(/var/tmp/asterisk/record07) exten => 3,n,SayDigits(${ORDER}) -exten => 3,n,GotoIf($[${DB(order/${ORDER})} = ""]?unknown_order) +exten => 3,n,GotoIf($["${DB(order/${ORDER})}" = ""]?unknown_order) exten => 3,n,Playback(/var/tmp/asterisk/record0${DB(order/${ORDER})}) exten => 3,n,Hangup exten => 3,n(unknown_order),Playback(/var/tmp/asterisk/record10) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3807.7174.92 2014-11-27 14:18:24.164497105 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 14:21:33.284499344 +0200 @@ -23,7 +23,7 @@ exten => 3,n,Playback(/var/tmp/asterisk/record07) exten => 3,n,SayDigits(${ORDER}) -exten => 3,n,GotoIf($["${DB(order/${ORDER})}" = ""]?unknown_order) +exten => 3,n,GotoIf($[${DB(order/${ORDER})} = ""]?unknown_order) exten => 3,n,Playback(/var/tmp/asterisk/record0${DB(order/${ORDER})}) exten => 3,n,Hangup exten => 3,n(unknown_order),Playback(/var/tmp/asterisk/record10) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3807.15180.20462 2014-11-27 14:23:49.364500955 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 14:24:41.844501572 +0200 @@ -23,7 +23,7 @@ exten => 3,n,Playback(/var/tmp/asterisk/record07) exten => 3,n,SayDigits(${ORDER}) -exten => 3,n,GotoIf($[${DB(order/${ORDER})} = ""]?unknown_order) +exten => 3,n,GotoIf($["${DB(order/${ORDER})}" = ""]?unknown_order) exten => 3,n,Playback(/var/tmp/asterisk/record0${DB(order/${ORDER})}) exten => 3,n,Hangup exten => 3,n(unknown_order),Playback(/var/tmp/asterisk/record10) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3807.26001.15351 2014-11-27 14:34:04.120508230 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 14:40:08.912512550 +0200 @@ -26,7 +26,7 @@ exten => 3,n,GotoIf($["${DB(order/${ORDER})}" = ""]?unknown_order) exten => 3,n,Playback(/var/tmp/asterisk/record0${DB(order/${ORDER})}) exten => 3,n,Hangup -exten => 3,n(unknown_order),Playback(/var/tmp/asterisk/record10) +exten => 3,n(unknown_order),Playback(/var/tmp/asterisk/record08) exten => 4,1,Queue(queue1) |
#mv /var/tmp/asterisk/record09.gsm /var/tmp/asterisk/record9.gsm
|
#ls -l /etc/asterisk/queue
ls: cannot access /etc/asterisk/queue: No such file or directory |
#vi /etc/asterisk/queues.conf
--- /tmp/l3-saved-7120.13091.28331 2014-11-27 14:50:44.328520070 +0200 +++ /etc/asterisk/queues.conf 2014-11-27 14:54:05.688522452 +0200 @@ -535,3 +535,10 @@ ;member => Agent/:1,1 ; Any agent in group 1, wait for first ; available, but consider with penalty +[queue1] + +member => SIP/1101 + + + + |
#vim /etc/asterisk/agents.conf
--- /tmp/l3-saved-7120.1094.10849 2014-11-27 15:06:34.336531312 +0200 +++ /etc/asterisk/agents.conf 2014-11-27 15:17:50.544539314 +0200 @@ -103,3 +103,5 @@ ; ;agent => 1001,4321,Mark Spencer ;agent => 1002,4321,Will Meadows +agent => 007,1234,Bond + |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#vim /usr/local/bin/call-all
--- /dev/null 2014-11-27 11:31:41.601114983 +0200 +++ /usr/local/bin/call-all 2014-11-27 16:27:25.180588723 +0200 @@ -0,0 +1,35 @@ +#!/bin/bash + +# наша задача перебрать разные каналы +#и отправить на каждый из них звонок + +# сейчас покажу что обозначает констуркция с фигурными скобками +for CHANNEL in 1201 1202 kiev/{1{1,3},2{1,2,3},3{1,2}}0{1,2} +do + +# каналы перебираются правильно +# теперь генерируем звонок + +# имя файла звонка не должно повторяться +# иначе мы перезапишем сами себя +# поэтому делаем случайное имя +# ${RANDOM} это случайное число в диапазоне от 0 до 65567 (2^16-1) + +FILE=/tmp/${RANDOM}${RANDOM}.call + +# <<EOF означает что копировать всё до EOF в поток вывода +cat <<EOF > $FILE +Context: internal +Extension: 8405 +Channel: SIP/${CHANNEL} +EOF + +chown asterisk:asterisk $FILE +mv $FILE /var/spool/asterisk/outgoing/ + + +done + +exit 0 + + |
#chown asterisk:asterisk /tmp/call.call
|
#cp -p /tmp/call.call /var/spool/asterisk/outgoing/
|
## сейчас должен был зазвонить 1101
|
## и если поднять трубку там должно быть меню
|
#exi
bash: exi: command not found |
#vim /usr/local/bin/call-all
--- /tmp/l3-saved-7120.9211.20653 2014-11-27 16:33:54.876593315 +0200 +++ /usr/local/bin/call-all 2014-11-27 16:36:58.652595515 +0200 @@ -4,7 +4,8 @@ #и отправить на каждый из них звонок # сейчас покажу что обозначает констуркция с фигурными скобками -for CHANNEL in 1201 1202 kiev/{1{1,3},2{1,2,3},3{1,2}}0{1,2} +for CHANNEL in 1201 1202 minsk/{13},{23}0{1,2} +#{13},2{1,2,3},3{1,2}}0{1,2} do # каналы перебираются правильно |
#~
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libsvn1 Suggested packages: subversion-tools The following NEW packages will be installed: libsvn1 subversion 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. ... Get:2 http://192.168.12.254/debian/ wheezy/main subversion amd64 1.6.17dfsg-4+deb7u6 [1,320 kB] Fetched 2,253 kB in 0s (10.2 MB/s) Selecting previously unselected package libsvn1:amd64. (Reading database ... 144711 files and directories currently installed.) Unpacking libsvn1:amd64 (from .../libsvn1_1.6.17dfsg-4+deb7u6_amd64.deb) ... Selecting previously unselected package subversion. Unpacking subversion (from .../subversion_1.6.17dfsg-4+deb7u6_amd64.deb) ... Processing triggers for man-db ... Setting up libsvn1:amd64 (1.6.17dfsg-4+deb7u6) ... Setting up subversion (1.6.17dfsg-4+deb7u6) ... |
#lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Root Complex 00:00.2 IOMMU: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) I/O Memory Management Unit 00:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Trinity [Radeon HD 7660D] 00:01.1 Audio device: Advanced Micro Devices [AMD] nee ATI Trinity HDMI Audio Controller 00:10.0 USB controller: Advanced Micro Devices [AMD] FCH USB XHCI Controller (rev 03) 00:10.1 USB controller: Advanced Micro Devices [AMD] FCH USB XHCI Controller (rev 03) 00:11.0 SATA controller: Advanced Micro Devices [AMD] FCH SATA Controller [AHCI mode] (rev 40) 00:12.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11) 00:12.2 USB controller: Advanced Micro Devices [AMD] FCH USB EHCI Controller (rev 11) 00:13.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11) ... 00:14.5 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11) 00:15.0 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI to PCI bridge (PCIE port 0) 00:15.2 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI to PCI bridge (PCIE port 2) 00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 0 00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 1 00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 2 00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 3 00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 4 00:18.5 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 5 03:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5761 Gigabit Ethernet PCIe (rev 10) |
#lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Root Complex 00:00.2 IOMMU: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) I/O Memory Management Unit 00:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Trinity [Radeon HD 7660D] 00:01.1 Audio device: Advanced Micro Devices [AMD] nee ATI Trinity HDMI Audio Controller 00:10.0 USB controller: Advanced Micro Devices [AMD] FCH USB XHCI Controller (rev 03) 00:10.1 USB controller: Advanced Micro Devices [AMD] FCH USB XHCI Controller (rev 03) 00:11.0 SATA controller: Advanced Micro Devices [AMD] FCH SATA Controller [AHCI mode] (rev 40) 00:12.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11) 00:12.2 USB controller: Advanced Micro Devices [AMD] FCH USB EHCI Controller (rev 11) 00:13.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11) ... 00:14.5 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11) 00:15.0 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI to PCI bridge (PCIE port 0) 00:15.2 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI to PCI bridge (PCIE port 2) 00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 0 00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 1 00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 2 00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 3 00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 4 00:18.5 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 5 03:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5761 Gigabit Ethernet PCIe (rev 10) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-5077.27763.4003 2014-11-28 13:55:12.615268536 +0200 +++ /etc/asterisk/extensions.conf 2014-11-28 13:56:38.727269553 +0200 @@ -78,6 +78,10 @@ [international] exten => _[23][123]XX,1,Dial(SIP/ny/${EXTEN}) + +; я беру NY потому что _22XX идёт через NY +exten => _5XXX,1,Dial(SIP/ny/${EXTEN}) + exten => _[12]3XX,1,Dial(SIP/minsk/${EXTEN}) [gr1] |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian1 (pid = 2581) ... == Using SIP RTP CoS mark 5 -- Executing [5001@gr4:1] Dial("SIP/komsomolsk-0000000a", "SIP/ny/5001") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/ny/5001 -- Got SIP response 503 "Service Unavailable" back from 192.168.40.1:5060 -- SIP/ny-0000000b is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/komsomolsk-0000000a' status is 'CONGESTION' debian1*CLI> quit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian1 (pid = 2581) ... == Using SIP RTP CoS mark 5 -- Executing [5001@gr4:1] Dial("SIP/komsomolsk-0000000a", "SIP/ny/5001") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/ny/5001 -- Got SIP response 503 "Service Unavailable" back from 192.168.40.1:5060 -- SIP/ny-0000000b is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/komsomolsk-0000000a' status is 'CONGESTION' debian1*CLI> quit Executing last minute cleanups |
#apt-get install mysql-server
Selecting previously unselected package libmysqlclient18:amd64. Unpacking libmysqlclient18:amd64 (from .../libmysqlclient18_5.5.40-0+wheezy1_amd64.deb) ... Selecting previously unselected package libdbi-perl. Unpacking libdbi-perl (from .../libdbi-perl_1.622-1+deb7u1_amd64.deb) ... Selecting previously unselected package libdbd-mysql-perl. Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.021-1+b1_amd64.deb) ... Selecting previously unselected package mysql-client-5.5. Unpacking mysql-client-5.5 (from .../mysql-client-5.5_5.5.40-0+wheezy1_amd64.deb) ... Selecting previously unselected package mysql-server-core-5.5. Unpacking mysql-server-core-5.5 (from .../mysql-server-core-5.5_5.5.40-0+wheezy1_amd64.deb) ... ... 141128 14:50:39 InnoDB: highest supported file format is Barracuda. 141128 14:50:39 InnoDB: Waiting for the background threads to start 141128 14:50:40 InnoDB: 5.5.40 started; log sequence number 1595675 141128 14:50:40 InnoDB: Starting shutdown... 141128 14:50:41 InnoDB: Shutdown completed; log sequence number 1595675 [ ok ] Starting MySQL database server: mysqld .. [info] Checking for tables which need an upgrade, are corrupt or were not closed cleanly.. Setting up libhtml-template-perl (2.91-1) ... Setting up mysql-server (5.5.40-0+wheezy1) ... |
#apt-get install mysql-server
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18 mysql-client-5.5 mysql-common mysql-server-5.5 mysql-server-core-5.5 Suggested packages: libipc-sharedcache-perl libterm-readkey-perl tinyca The following NEW packages will be installed: libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18 ... 141128 14:50:39 InnoDB: highest supported file format is Barracuda. 141128 14:50:39 InnoDB: Waiting for the background threads to start 141128 14:50:40 InnoDB: 5.5.40 started; log sequence number 1595675 141128 14:50:40 InnoDB: Starting shutdown... 141128 14:50:41 InnoDB: Shutdown completed; log sequence number 1595675 [ ok ] Starting MySQL database server: mysqld .. [info] Checking for tables which need an upgrade, are corrupt or were not closed cleanly.. Setting up libhtml-template-perl (2.91-1) ... Setting up mysql-server (5.5.40-0+wheezy1) ... |
#apt-get install mysql-client
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: mysql-client 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 73.8 kB of archives. After this operation, 121 kB of additional disk space will be used. Get:1 http://security.debian.org/ wheezy/updates/main mysql-client all 5.5.40-0+wheezy1 [73.8 kB] Fetched 73.8 kB in 0s (236 kB/s) Selecting previously unselected package mysql-client. (Reading database ... 145248 files and directories currently installed.) Unpacking mysql-client (from .../mysql-client_5.5.40-0+wheezy1_all.deb) ... Setting up mysql-client (5.5.40-0+wheezy1) ... |
#apt-get install mysql-client
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: mysql-client 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 73.8 kB of archives. After this operation, 121 kB of additional disk space will be used. Get:1 http://security.debian.org/ wheezy/updates/main mysql-client all 5.5.40-0+wheezy1 [73.8 kB] Fetched 73.8 kB in 0s (236 kB/s) Selecting previously unselected package mysql-client. (Reading database ... 145248 files and directories currently installed.) Unpacking mysql-client (from .../mysql-client_5.5.40-0+wheezy1_all.deb) ... Setting up mysql-client (5.5.40-0+wheezy1) ... |
#apt-cache search asterisk mysql
asterisk-mysql - MySQL database protocol support for the Asterisk PBX |
#apt-cache search asterisk mysql
asterisk-mysql - MySQL database protocol support for the Asterisk PBX |
#apt-get install asterisk-mysql
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: asterisk-mysql 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 658 kB of archives. After this operation, 783 kB of additional disk space will be used. Get:1 http://192.168.12.254/debian/ wheezy/main asterisk-mysql amd64 1:1.8.13.1~dfsg1-3+deb7u3 [658 kB] Fetched 658 kB in 0s (9,743 kB/s) Selecting previously unselected package asterisk-mysql. (Reading database ... 145253 files and directories currently installed.) Unpacking asterisk-mysql (from .../asterisk-mysql_1%3a1.8.13.1~dfsg1-3+deb7u3_amd64.deb) ... Setting up asterisk-mysql (1:1.8.13.1~dfsg1-3+deb7u3) ... |
#apt-get install asterisk-mysql
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: asterisk-mysql 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 658 kB of archives. After this operation, 783 kB of additional disk space will be used. Get:1 http://192.168.12.254/debian/ wheezy/main asterisk-mysql amd64 1:1.8.13.1~dfsg1-3+deb7u3 [658 kB] Fetched 658 kB in 0s (9,743 kB/s) Selecting previously unselected package asterisk-mysql. (Reading database ... 145253 files and directories currently installed.) Unpacking asterisk-mysql (from .../asterisk-mysql_1%3a1.8.13.1~dfsg1-3+deb7u3_amd64.deb) ... Setting up asterisk-mysql (1:1.8.13.1~dfsg1-3+deb7u3) ... |
Context: internal Channel: SIP/1101 Extension: 8405
Новоизбранные народные депутаты 27 ноября соберутся на торжественное заседание по случаю принятия присяги и открытия первой сессии
Время первой команды журнала | 16:12:16 2014-11-26 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:51:15 2014-11-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 5.94 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.96 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 4.78 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.35 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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