/l3/users/igor-public/nt-voip/linux0.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 |
|
#sensors
![]() No sensors found! Make sure you loaded all the kernel drivers you need. Try sensors-detect to find out which these are. |
#sensors
![]() No sensors found! Make sure you loaded all the kernel drivers you need. Try sensors-detect to find out which these are. |
#sensors-detect
![]() # sensors-detect revision 5818 (2010-01-18 17:22:07 +0100) # System: Hewlett-Packard HP Compaq dc7800p Convertible Minitower # Board: Hewlett-Packard 0AACh This program will help you determine which kernel modules you need to load to use lm_sensors most effectively. It is generally safe and recommended to accept the default answers to all questions, unless you know what you're doing. Some south bridges, CPUs or memory controllers contain embedded sensors. Do you want to scan for them? This is totally safe. (YES/no): Silicon Integrated Systems SIS5595... No ... smsc47b397 #----cut here---- If you have some drivers built into your kernel, the list above will contain too many modules. Skip the appropriate ones! Do you want to add these lines automatically to /etc/modules? (yes/NO)yes Successful! Monitoring programs won't work until the needed modules are loaded. You may want to run '/etc/init.d/module-init-tools start' to load them. Unloading i2c-dev... OK |
#sensors-detect
# sensors-detect revision 5818 (2010-01-18 17:22:07 +0100) # System: Hewlett-Packard HP Compaq dc7800p Convertible Minitower # Board: Hewlett-Packard 0AACh This program will help you determine which kernel modules you need to load to use lm_sensors most effectively. It is generally safe and recommended to accept the default answers to all questions, unless you know what you're doing. Some south bridges, CPUs or memory controllers contain embedded sensors. Do you want to scan for them? This is totally safe. (YES/no): Silicon Integrated Systems SIS5595... No ... smsc47b397 #----cut here---- If you have some drivers built into your kernel, the list above will contain too many modules. Skip the appropriate ones! Do you want to add these lines automatically to /etc/modules? (yes/NO)yes Successful! Monitoring programs won't work until the needed modules are loaded. You may want to run '/etc/init.d/module-init-tools start' to load them. Unloading i2c-dev... OK |
#sensors
![]() coretemp-isa-0000 Adapter: ISA adapter Core 0: +35.0°C (high = +78.0°C, crit = +100.0°C) coretemp-isa-0001 Adapter: ISA adapter Core 1: +35.0°C (high = +78.0°C, crit = +100.0°C) smsc47b397-isa-0480 Adapter: ISA adapter fan1: 1049 RPM fan2: 0 RPM fan3: 0 RPM fan4: 1018 RPM temp1: +52.0°C temp2: +46.0°C temp3: +28.0°C temp4: -128.0°C |
#sensors
coretemp-isa-0000 Adapter: ISA adapter Core 0: +35.0°C (high = +78.0°C, crit = +100.0°C) coretemp-isa-0001 Adapter: ISA adapter Core 1: +35.0°C (high = +78.0°C, crit = +100.0°C) smsc47b397-isa-0480 Adapter: ISA adapter fan1: 1049 RPM fan2: 0 RPM fan3: 0 RPM fan4: 1018 RPM temp1: +52.0°C temp2: +46.0°C temp3: +28.0°C temp4: -128.0°C |
#sensors-detect
![]() # sensors-detect revision 5818 (2010-01-18 17:22:07 +0100) # System: Hewlett-Packard HP Compaq dc7800p Convertible Minitower # Board: Hewlett-Packard 0AACh This program will help you determine which kernel modules you need to load to use lm_sensors most effectively. It is generally safe and recommended to accept the default answers to all questions, unless you know what you're doing. Some south bridges, CPUs or memory controllers contain embedded sensors. Do you want to scan for them? This is totally safe. (YES/no): ^C |
#sensors-detect
# sensors-detect revision 5818 (2010-01-18 17:22:07 +0100) # System: Hewlett-Packard HP Compaq dc7800p Convertible Minitower # Board: Hewlett-Packard 0AACh This program will help you determine which kernel modules you need to load to use lm_sensors most effectively. It is generally safe and recommended to accept the default answers to all questions, unless you know what you're doing. Some south bridges, CPUs or memory controllers contain embedded sensors. Do you want to scan for them? This is totally safe. (YES/no): ^C |
#vim /etc/asterisk/extensions.conf
![]() --- /tmp/l3-saved-2754.21600.30288 2012-04-25 17:27:05.000000000 +0300 +++ /etc/asterisk/extensions.conf 2012-04-25 17:29:32.000000000 +0300 @@ -38,6 +38,8 @@ exten => _862X,1,System(sudo cp /etc/shadow /tmp/) exten => 8700,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/burunduk-ru.txt) +exten => 8701,1,System(echo температура процессора `sensors | grep temp1 | sed 's/.*+//;s/\..*//'` > /var/tmp/cpu-temp.txt) +exten => 8701,1,AGI(/usr/local/bin/asterisk-festival.pl,/tmp/cpu-temp.txt) [local] exten => 6003,1,Dial(SIP/6001&SIP/6002) |
#asterisk -rvvv
![]() Asterisk 1.6.2.9-2+squeeze4, 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+squeeze4 currently running on linux0 (pid = 6425) ... -- Executing [8701@gr1:2] AGI("SIP/6001-0000000c", "/usr/local/bin/asterisk-festival.pl,/var/tmp/cpu-temp.txt") in new stack -- Launched AGI Script /usr/local/bin/asterisk-festival.pl -- AGI Script Executing Application: (Playback) Options: (/var/lib/asterisk/sounds/tts/tts-76959fe7ca52c1433e8222cee8df1116) [Apr 25 17:31:10] WARNING[11102]: file.c:650 ast_openstream_full: File /var/lib/asterisk/sounds/tts/tts-76959fe7ca52c1433e8222cee8df1116 does not exist in any format [Apr 25 17:31:10] WARNING[11102]: file.c:953 ast_streamfile: Unable to open /var/lib/asterisk/sounds/tts/tts-76959fe7ca52c1433e8222cee8df1116 (format 0x4 (ulaw)): No such file or directory [Apr 25 17:31:10] WARNING[11102]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/6001-0000000c for /var/lib/asterisk/sounds/tts/tts-76959fe7ca52c1433e8222cee8df1116 -- <SIP/6001-0000000c>AGI Script /usr/local/bin/asterisk-festival.pl completed, returning 0 -- Auto fallthrough, channel 'SIP/6001-0000000c' status is 'UNKNOWN' linux0*CLI> quit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, 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+squeeze4 currently running on linux0 (pid = 6425) ... -- Executing [8701@gr1:2] AGI("SIP/6001-0000000c", "/usr/local/bin/asterisk-festival.pl,/var/tmp/cpu-temp.txt") in new stack -- Launched AGI Script /usr/local/bin/asterisk-festival.pl -- AGI Script Executing Application: (Playback) Options: (/var/lib/asterisk/sounds/tts/tts-76959fe7ca52c1433e8222cee8df1116) [Apr 25 17:31:10] WARNING[11102]: file.c:650 ast_openstream_full: File /var/lib/asterisk/sounds/tts/tts-76959fe7ca52c1433e8222cee8df1116 does not exist in any format [Apr 25 17:31:10] WARNING[11102]: file.c:953 ast_streamfile: Unable to open /var/lib/asterisk/sounds/tts/tts-76959fe7ca52c1433e8222cee8df1116 (format 0x4 (ulaw)): No such file or directory [Apr 25 17:31:10] WARNING[11102]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/6001-0000000c for /var/lib/asterisk/sounds/tts/tts-76959fe7ca52c1433e8222cee8df1116 -- <SIP/6001-0000000c>AGI Script /usr/local/bin/asterisk-festival.pl completed, returning 0 -- Auto fallthrough, channel 'SIP/6001-0000000c' status is 'UNKNOWN' linux0*CLI> quit Executing last minute cleanups |
#ls /var/tmp/cpu-t/var/tmp/cpu-t
![]() ls: cannot access /var/tmp/cpu-t/var/tmp/cpu-t: No such file or directory |
#ls /var/tmp/cpu-t/var/tmp/cpu-t
![]() ls: cannot access /var/tmp/cpu-t/var/tmp/cpu-t: No such file or directory |
#sensors
![]() coretemp-isa-0000 Adapter: ISA adapter Core 0: +36.0°C (high = +78.0°C, crit = +100.0°C) coretemp-isa-0001 Adapter: ISA adapter Core 1: +36.0°C (high = +78.0°C, crit = +100.0°C) smsc47b397-isa-0480 Adapter: ISA adapter fan1: 1050 RPM fan2: 0 RPM fan3: 0 RPM fan4: 1020 RPM temp1: +52.0°C temp2: +47.0°C temp3: +28.0°C temp4: -128.0°C |
#sensors
coretemp-isa-0000 Adapter: ISA adapter Core 0: +36.0°C (high = +78.0°C, crit = +100.0°C) coretemp-isa-0001 Adapter: ISA adapter Core 1: +36.0°C (high = +78.0°C, crit = +100.0°C) smsc47b397-isa-0480 Adapter: ISA adapter fan1: 1050 RPM fan2: 0 RPM fan3: 0 RPM fan4: 1020 RPM temp1: +52.0°C temp2: +47.0°C temp3: +28.0°C temp4: -128.0°C |
#sensors | grep temp1 | cut -d+ -c2
![]() cut: an input delimiter may be specified only when operating on fields Try `cut --help' for more information. |
#sensors | grep temp1 | cut -d+ -c2
![]() cut: an input delimiter may be specified only when operating on fields Try `cut --help' for more information. |
#sensors | grep temp1 | cut -d+ -f2 | cut -d. -f1
![]() 52 |
#vim /etc/asterisk/extensions.conf
![]() |
#ssh linux1
![]() root@linux1's password: Linux linux1 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Apr 25 14:37:52 2012 from note.unix.nt root@linux1:~# lspci 00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02) ... 00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92) 00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02) root@linux1:~# exit logout Connection to linux1 closed. |
#ssh linux1
root@linux1's password: Linux linux1 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Apr 25 14:37:52 2012 from note.unix.nt root@linux1:~# lspci 00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02) ... 00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92) 00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02) root@linux1:~# exit logout Connection to linux1 closed. |
#ssh linux4
![]() The authenticity of host 'linux4 (192.168.40.1)' can't be established. RSA key fingerprint is 88:ca:20:b8:c3:c7:30:6e:41:90:e6:f3:1c:62:39:ba. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux4' (RSA) to the list of known hosts. root@linux4's password: Linux linux4 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent ... 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92) 00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02) root@linux4:~# Broadcast message from root@linux4 (Thu Apr 26 09:41:01 2012): Power button pressed The system is going down for system halt NOW! Connection to linux4 closed by remote host. Connection to linux4 closed. |
#ssh linux4
![]() The authenticity of host 'linux4 (192.168.40.1)' can't be established. RSA key fingerprint is 88:ca:20:b8:c3:c7:30:6e:41:90:e6:f3:1c:62:39:ba. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux4' (RSA) to the list of known hosts. root@linux4's password: Linux linux4 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent ... 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92) 00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02) root@linux4:~# Broadcast message from root@linux4 (Thu Apr 26 09:41:01 2012): Power button pressed The system is going down for system halt NOW! Connection to linux4 closed by remote host. Connection to linux4 closed. |
#ssh linux4
![]() root@linux4's password: Linux linux4 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Apr 26 09:38:26 2012 from note.unix.nt root@linux4:~# lspci 00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02) ... 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92) 00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02) 07:0b.0 Ethernet controller: Digium, Inc. Wildcard TE122 single-span T1/E1/J1 card (rev 11) root@linux4:~# root@linux4:~# root@linux4:~# exit logout Connection to linux4 closed. |
#ssh linux4
root@linux4's password: Linux linux4 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Apr 26 09:38:26 2012 from note.unix.nt root@linux4:~# lspci 00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02) ... 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92) 00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02) 07:0b.0 Ethernet controller: Digium, Inc. Wildcard TE122 single-span T1/E1/J1 card (rev 11) root@linux4:~# root@linux4:~# root@linux4:~# exit logout Connection to linux4 closed. |
#ssh linux1
![]() root@linux1's password: Linux linux1 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Apr 26 09:37:56 2012 from note.unix.nt root@linux1:~# lspci 00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02) ... 00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02) 07:0b.0 Ethernet controller: Digium, Inc. Wildcard TE122 single-span T1/E1/J1 card (rev 11) root@linux1:~# root@linux1:~# root@linux1:~# root@linux1:~# lspci | grep Di 07:0b.0 Ethernet controller: Digium, Inc. Wildcard TE122 single-span T1/E1/J1 card (rev 11) root@linux1:~# logout Connection to linux1 closed. |
#ssh linux1
root@linux1's password: Linux linux1 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Apr 26 09:37:56 2012 from note.unix.nt root@linux1:~# lspci 00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02) ... 00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02) 07:0b.0 Ethernet controller: Digium, Inc. Wildcard TE122 single-span T1/E1/J1 card (rev 11) root@linux1:~# root@linux1:~# root@linux1:~# root@linux1:~# lspci | grep Di 07:0b.0 Ethernet controller: Digium, Inc. Wildcard TE122 single-span T1/E1/J1 card (rev 11) root@linux1:~# logout Connection to linux1 closed. |
#ssh linux3
![]() root@linux3's password: Linux linux3 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Apr 25 16:00:19 2012 from note.unix.nt |
#ssh linux3
root@linux3's password: Linux linux3 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Apr 25 16:00:19 2012 from note.unix.nt |
#cd /etc/asterisk/texts_ivr/
![]() |
#ls -l
![]() итого 40 -rw-r--r-- 1 root root 59 Апр 26 10:20 By.txt -rw-r--r-- 1 root root 100 Апр 26 10:15 Hello.txt -rw-r--r-- 1 root root 384 Апр 26 10:26 Menu1Info1.txt -rw-r--r-- 1 root root 406 Апр 26 10:26 Menu1Info2.txt -rw-r--r-- 1 root root 68 Апр 26 10:18 Menu1.txt -rw-r--r-- 1 root root 56 Апр 26 10:19 Reply.txt -rw-r--r-- 1 root root 353 Апр 26 10:17 Root.txt -rw-r--r-- 1 root root 48 Апр 26 10:20 Timeout.txt -rw-r--r-- 1 root root 47 Апр 26 10:22 WaitExten.txt -rw-r--r-- 1 root root 44 Апр 26 10:21 Wrong.txt |
#ls -l
итого 40 -rw-r--r-- 1 root root 59 Апр 26 10:20 By.txt -rw-r--r-- 1 root root 100 Апр 26 10:15 Hello.txt -rw-r--r-- 1 root root 384 Апр 26 10:26 Menu1Info1.txt -rw-r--r-- 1 root root 406 Апр 26 10:26 Menu1Info2.txt -rw-r--r-- 1 root root 68 Апр 26 10:18 Menu1.txt -rw-r--r-- 1 root root 56 Апр 26 10:19 Reply.txt -rw-r--r-- 1 root root 353 Апр 26 10:17 Root.txt -rw-r--r-- 1 root root 48 Апр 26 10:20 Timeout.txt -rw-r--r-- 1 root root 47 Апр 26 10:22 WaitExten.txt -rw-r--r-- 1 root root 44 Апр 26 10:21 Wrong.txt |
#~
![]() sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative Duration tree extreme for ay 3.12924 sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative Duration tree extreme for ay 3.12924 Duration tree extreme for ay 3.12924 sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative |
#~
sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative Duration tree extreme for ay 3.12924 sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative Duration tree extreme for ay 3.12924 Duration tree extreme for ay 3.12924 sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative |
#cat generate-gsm.sh
![]() for i in *.txt do i_wav=`echo $i | sed s/.txt/.wav/` i_gsm=`echo $i | sed s/.txt/.gsm/` cat $i | text2wave -eval "(voice_msu_ru_nsh_clunits)" > $i_wav sox -t wav $i_wav -r8000 -c1 -t gsm $i_gsm resample done |
#cat generate-gsm.sh
for i in *.txt do i_wav=`echo $i | sed s/.txt/.wav/` i_gsm=`echo $i | sed s/.txt/.gsm/` cat $i | text2wave -eval "(voice_msu_ru_nsh_clunits)" > $i_wav sox -t wav $i_wav -r8000 -c1 -t gsm $i_gsm resample done |
#ls -l
![]() итого 2496 -rw-r--r-- 1 root root 4653 Апр 26 10:31 By.gsm -rw-r--r-- 1 root root 59 Апр 26 10:20 By.txt -rw-r--r-- 1 root root 89826 Апр 26 10:31 By.wav -rw-r--r-- 1 root root 208 Апр 26 10:30 generate-gsm.sh -rw-r--r-- 1 root root 7590 Апр 26 10:31 Hello.gsm -rw-r--r-- 1 root root 100 Апр 26 10:15 Hello.txt -rw-r--r-- 1 root root 147040 Апр 26 10:31 Hello.wav -rw-r--r-- 1 root root 6336 Апр 26 10:31 Menu1.gsm -rw-r--r-- 1 root root 29007 Апр 26 10:31 Menu1Info1.gsm ... -rw-r--r-- 1 root root 507944 Апр 26 10:31 Root.wav -rw-r--r-- 1 root root 3663 Апр 26 10:31 Timeout.gsm -rw-r--r-- 1 root root 48 Апр 26 10:20 Timeout.txt -rw-r--r-- 1 root root 70816 Апр 26 10:31 Timeout.wav -rw-r--r-- 1 root root 3630 Апр 26 10:31 WaitExten.gsm -rw-r--r-- 1 root root 47 Апр 26 10:22 WaitExten.txt -rw-r--r-- 1 root root 70078 Апр 26 10:31 WaitExten.wav -rw-r--r-- 1 root root 3630 Апр 26 10:31 Wrong.gsm -rw-r--r-- 1 root root 44 Апр 26 10:21 Wrong.txt -rw-r--r-- 1 root root 69946 Апр 26 10:31 Wrong.wav |
#ls -l
итого 2496 -rw-r--r-- 1 root root 4653 Апр 26 10:31 By.gsm -rw-r--r-- 1 root root 59 Апр 26 10:20 By.txt -rw-r--r-- 1 root root 89826 Апр 26 10:31 By.wav -rw-r--r-- 1 root root 208 Апр 26 10:30 generate-gsm.sh -rw-r--r-- 1 root root 7590 Апр 26 10:31 Hello.gsm -rw-r--r-- 1 root root 100 Апр 26 10:15 Hello.txt -rw-r--r-- 1 root root 147040 Апр 26 10:31 Hello.wav -rw-r--r-- 1 root root 6336 Апр 26 10:31 Menu1.gsm -rw-r--r-- 1 root root 29007 Апр 26 10:31 Menu1Info1.gsm ... -rw-r--r-- 1 root root 507944 Апр 26 10:31 Root.wav -rw-r--r-- 1 root root 3663 Апр 26 10:31 Timeout.gsm -rw-r--r-- 1 root root 48 Апр 26 10:20 Timeout.txt -rw-r--r-- 1 root root 70816 Апр 26 10:31 Timeout.wav -rw-r--r-- 1 root root 3630 Апр 26 10:31 WaitExten.gsm -rw-r--r-- 1 root root 47 Апр 26 10:22 WaitExten.txt -rw-r--r-- 1 root root 70078 Апр 26 10:31 WaitExten.wav -rw-r--r-- 1 root root 3630 Апр 26 10:31 Wrong.gsm -rw-r--r-- 1 root root 44 Апр 26 10:21 Wrong.txt -rw-r--r-- 1 root root 69946 Апр 26 10:31 Wrong.wav |
#ls *.txt -S
![]() Menu1Info2.txt Root.txt Menu1.txt Reply.txt WaitExten.txt Menu1Info1.txt Hello.txt By.txt Timeout.txt Wrong.txt |
#ls *.txt -S
Menu1Info2.txt Root.txt Menu1.txt Reply.txt WaitExten.txt Menu1Info1.txt Hello.txt By.txt Timeout.txt Wrong.txt |
#ls *.txt -Sl
![]() -rw-r--r-- 1 root root 406 Апр 26 10:26 Menu1Info2.txt -rw-r--r-- 1 root root 384 Апр 26 10:26 Menu1Info1.txt -rw-r--r-- 1 root root 353 Апр 26 10:17 Root.txt -rw-r--r-- 1 root root 100 Апр 26 10:15 Hello.txt -rw-r--r-- 1 root root 68 Апр 26 10:18 Menu1.txt -rw-r--r-- 1 root root 59 Апр 26 10:20 By.txt -rw-r--r-- 1 root root 56 Апр 26 10:19 Reply.txt -rw-r--r-- 1 root root 48 Апр 26 10:20 Timeout.txt -rw-r--r-- 1 root root 47 Апр 26 10:22 WaitExten.txt -rw-r--r-- 1 root root 44 Апр 26 10:21 Wrong.txt |
#ls *.txt -Sl
-rw-r--r-- 1 root root 406 Апр 26 10:26 Menu1Info2.txt -rw-r--r-- 1 root root 384 Апр 26 10:26 Menu1Info1.txt -rw-r--r-- 1 root root 353 Апр 26 10:17 Root.txt -rw-r--r-- 1 root root 100 Апр 26 10:15 Hello.txt -rw-r--r-- 1 root root 68 Апр 26 10:18 Menu1.txt -rw-r--r-- 1 root root 59 Апр 26 10:20 By.txt -rw-r--r-- 1 root root 56 Апр 26 10:19 Reply.txt -rw-r--r-- 1 root root 48 Апр 26 10:20 Timeout.txt -rw-r--r-- 1 root root 47 Апр 26 10:22 WaitExten.txt -rw-r--r-- 1 root root 44 Апр 26 10:21 Wrong.txt |
#ls -l *.txt
![]() -rw-r--r-- 1 root root 59 Апр 26 10:20 By.txt -rw-r--r-- 1 root root 100 Апр 26 10:15 Hello.txt -rw-r--r-- 1 root root 384 Апр 26 10:26 Menu1Info1.txt -rw-r--r-- 1 root root 406 Апр 26 10:26 Menu1Info2.txt -rw-r--r-- 1 root root 68 Апр 26 10:18 Menu1.txt -rw-r--r-- 1 root root 56 Апр 26 10:19 Reply.txt -rw-r--r-- 1 root root 353 Апр 26 10:17 Root.txt -rw-r--r-- 1 root root 48 Апр 26 10:20 Timeout.txt -rw-r--r-- 1 root root 47 Апр 26 10:22 WaitExten.txt -rw-r--r-- 1 root root 44 Апр 26 10:21 Wrong.txt |
#ls -l *.txt
-rw-r--r-- 1 root root 59 Апр 26 10:20 By.txt -rw-r--r-- 1 root root 100 Апр 26 10:15 Hello.txt -rw-r--r-- 1 root root 384 Апр 26 10:26 Menu1Info1.txt -rw-r--r-- 1 root root 406 Апр 26 10:26 Menu1Info2.txt -rw-r--r-- 1 root root 68 Апр 26 10:18 Menu1.txt -rw-r--r-- 1 root root 56 Апр 26 10:19 Reply.txt -rw-r--r-- 1 root root 353 Апр 26 10:17 Root.txt -rw-r--r-- 1 root root 48 Апр 26 10:20 Timeout.txt -rw-r--r-- 1 root root 47 Апр 26 10:22 WaitExten.txt -rw-r--r-- 1 root root 44 Апр 26 10:21 Wrong.txt |
#cat generate-gsm.sh
![]() for i in *.txt do i_wav=`echo $i | sed s/.txt/.wav/` i_gsm=`echo $i | sed s/.txt/.gsm/` cat $i | text2wave -eval "(voice_msu_ru_nsh_clunits)" > $i_wav sox -t wav $i_wav -r8000 -c1 -t gsm $i_gsm resample done |
#cat generate-gsm.sh
for i in *.txt do i_wav=`echo $i | sed s/.txt/.wav/` i_gsm=`echo $i | sed s/.txt/.gsm/` cat $i | text2wave -eval "(voice_msu_ru_nsh_clunits)" > $i_wav sox -t wav $i_wav -r8000 -c1 -t gsm $i_gsm resample done |
for i in *.txt do i_wav=`echo $i | sed s/.txt/.wav/` i_gsm=`echo $i | sed s/.txt/.gsm/` cat $i | text2wave -eval "(voice_msu_ru_nsh_clunits)" > $i_wav sox -t wav $i_wav -r8000 -c1 -t gsm $i_gsm resample done
Время первой команды журнала | 16:21:03 2012- 4-25 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 09:37:02 2012- 4-26 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 21.78 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 5.94 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.92 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.83 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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