/l3/users/mas/nt-voip/linux1.unix.nt/root :1 :2 :3 :4 :5 |
|
#apt-get install sendxmpp
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libauthen-sasl-perl libdigest-sha1-perl libio-socket-ssl-perl libnet-libidn-perl libnet-ssleay-perl libnet-xmpp-perl libxml-stream-perl Suggested packages: ... Unpacking sendxmpp (from .../sendxmpp_1.20-1_all.deb) ... Processing triggers for man-db ... Setting up libauthen-sasl-perl (2.1500-1) ... Setting up libdigest-sha1-perl (2.13-1) ... Setting up libnet-ssleay-perl (1.36-1) ... Setting up libio-socket-ssl-perl (1.33-1+squeeze1) ... Setting up libnet-libidn-perl (0.12.ds-1+b1) ... Setting up libxml-stream-perl (1.23-1) ... Setting up libnet-xmpp-perl (1.02-1) ... Setting up sendxmpp (1.20-1) ... |
#ejabberctl register asterisk linux1.unix.nt password
bash: ejabberctl: command not found |
#ejabberctl register asterisk linux1.unix.nt password
bash: ejabberctl: command not found |
#ejabberdctl register asterisk linux1.unix.nt password
User asterisk@linux1.unix.nt successfully registered |
#ejabberdctl register asterisk linux1.unix.nt password
User asterisk@linux1.unix.nt successfully registered |
#jabberdctl register asterisk linux1.unix.nt password
|
#vim /usr/local/bin/asterisk-jabber-send
|
#vim /usr/local/bin/asterisk-jabber-send
--- /dev/null 2013-04-12 08:58:29.900959990 +0300 +++ /usr/local/bin/asterisk-jabber-send 2013-04-12 14:36:57.000000000 +0300 @@ -0,0 +1,6 @@ +#!/bin/sh + +JID="$1" +shift +echo $* | sendxmpp -f /var/lib/asterisk/.sendxmpprc "$JID" + |
#7
|
#jabberdctl register asterisk linux1.unix.nt password
xten => 2,n,Goto(submenu,s,1) ;нажали 9 - идём в подменю exten => 9,1,Goto(submenu,s,1) ;нажали 0 - в главное меню exten => 0,1,Goto(menu,s,start) @ 46,1 17% [order] ;приглашение ввести номер заказа |
#jabberdctl register asterisk linux1.unix.nt password
exten => 1,n,Goto(submenu,s,1) ; читае о бурундуках и назад в меню )xten => 2,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/text/burunduki.txtt xten => 2,n,Goto(submenu,s,1) ;нажали 9 - идём в подменю exten => 9,1,Goto(submenu,s,1) @ 46,1 17% ;нажали 0 - в главное меню exten => 0,1,Goto(menu,s,start) [order] ;приглашение ввести номер заказа |
#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 13 not upgraded. Need to get 47.4 kB of archives. After this operation, 176 kB of additional disk space will be used. Get:1 http://192.168.15.253/debian/ squeeze/main asterisk-mysql i386 1.6.2.1-1 [47.4 kB] Fetched 47.4 kB in 0s (2,147 kB/s) Selecting previously deselected package asterisk-mysql. (Reading database ... 131840 files and directories currently installed.) Unpacking asterisk-mysql (from .../asterisk-mysql_1.6.2.1-1_i386.deb) ... Setting up asterisk-mysql (1.6.2.1-1) ... |
#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 13 not upgraded. Need to get 47.4 kB of archives. After this operation, 176 kB of additional disk space will be used. Get:1 http://192.168.15.253/debian/ squeeze/main asterisk-mysql i386 1.6.2.1-1 [47.4 kB] Fetched 47.4 kB in 0s (2,147 kB/s) Selecting previously deselected package asterisk-mysql. (Reading database ... 131840 files and directories currently installed.) Unpacking asterisk-mysql (from .../asterisk-mysql_1.6.2.1-1_i386.deb) ... Setting up asterisk-mysql (1.6.2.1-1) ... |
#ls -l /usr/local/bin/asterisk-jabber-send
-rwxr-xr-x 1 asterisk asterisk 86 Apr 12 14:36 /usr/local/bin/asterisk-jabber-send |
#cat /usr/local/bin/asterisk-jabber-send
#!/bin/sh JID="$1" shift echo $* | sendxmpp -f /var/lib/asterisk/.sendxmpprc "$JID" |
#chown root:root /var/lib/asterisk/.sendxmpprc
|
#chmod 600 /var/lib/asterisk/.sendxmpprc
|
#apt-get install mysql
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package mysql |
#apt-get install mysql
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package mysql |
#apt-get install mysql-server
Unpacking mysql-server-5.1 (from .../mysql-server-5.1_5.1.66-0+squeeze1_i386.deb) ... Selecting previously deselected package libhtml-template-perl. Unpacking libhtml-template-perl (from .../libhtml-template-perl_2.9-2_all.deb) ... Selecting previously deselected package mysql-server. Unpacking mysql-server (from .../mysql-server_5.1.66-0+squeeze1_all.deb) ... Processing triggers for man-db ... Setting up libnet-daemon-perl (0.43-1) ... Setting up libplrpc-perl (0.2020-2) ... Setting up libdbi-perl (1.612-1) ... Setting up libdbd-mysql-perl (4.016-1) ... ... 130412 15:11:45 [Note] Plugin 'FEDERATED' is disabled. 130412 15:11:45 InnoDB: Initializing buffer pool, size = 8.0M 130412 15:11:45 InnoDB: Completed initialization of buffer pool 130412 15:11:45 InnoDB: Started; log sequence number 0 44233 130412 15:11:45 InnoDB: Starting shutdown... 130412 15:11:51 InnoDB: Shutdown completed; log sequence number 0 44233 Starting MySQL database server: mysqld. Checking for corrupt, not cleanly closed and upgrade needing tables.. Setting up libhtml-template-perl (2.9-2) ... Setting up mysql-server (5.1.66-0+squeeze1) ... |
#apt-get install mysql-server
(Reading database ... 131852 files and directories currently installed.) Unpacking libnet-daemon-perl (from .../libnet-daemon-perl_0.43-1_all.deb) ... Selecting previously deselected package libplrpc-perl. Unpacking libplrpc-perl (from .../libplrpc-perl_0.2020-2_all.deb) ... Selecting previously deselected package libdbi-perl. Unpacking libdbi-perl (from .../libdbi-perl_1.612-1_i386.deb) ... Selecting previously deselected package libdbd-mysql-perl. Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.016-1_i386.deb) ... Selecting previously deselected package mysql-client-5.1. Unpacking mysql-client-5.1 (from .../mysql-client-5.1_5.1.66-0+squeeze1_i386.deb) ... ... 130412 15:11:45 [Note] Plugin 'FEDERATED' is disabled. 130412 15:11:45 InnoDB: Initializing buffer pool, size = 8.0M 130412 15:11:45 InnoDB: Completed initialization of buffer pool 130412 15:11:45 InnoDB: Started; log sequence number 0 44233 130412 15:11:45 InnoDB: Starting shutdown... 130412 15:11:51 InnoDB: Shutdown completed; log sequence number 0 44233 Starting MySQL database server: mysqld. Checking for corrupt, not cleanly closed and upgrade needing tables.. Setting up libhtml-template-perl (2.9-2) ... Setting up mysql-server (5.1.66-0+squeeze1) ... |
#mysql -p <mysql -p < /tmp/cdr_mysql.txt
bash: mysql: No such file or directory |
#mysql -p
Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 41 Server version: 5.1.66-0+squeeze1 (Debian) Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. #GRANT SELECT,UPDATE,INSERT,DELETE,DROP on asterisk.* to 'asterisk'@'localhost' ... mysql> use asterisk; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> select * from asterisk; ERROR 1146 (42S02): Table 'asterisk.asterisk' doesn't exist mysql> select * from cdr; Empty set (0.00 sec) mysql> quit; Bye |
#mysql -p
Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 41 Server version: 5.1.66-0+squeeze1 (Debian) Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. #GRANT SELECT,UPDATE,INSERT,DELETE,DROP on asterisk.* to 'asterisk'@'localhost' ... mysql> use asterisk; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> select * from asterisk; ERROR 1146 (42S02): Table 'asterisk.asterisk' doesn't exist mysql> select * from cdr; Empty set (0.00 sec) mysql> quit; Bye |
#/usr/local/bin/asterisk-festival.pl burunduki.txt
/root/asterisk-11.3.0.tar.gz /root root@192.168.70.1's password: asterisk-11.3.0.tar.gz 100% 29MB 14.6MB/s 00:02 |
#/usr/local/bin/asterisk-festival.pl burunduki.txt
/root/asterisk-11.3.0.tar.gz /root root@192.168.70.1's password: asterisk-11.3.0.tar.gz 100% 29MB 14.6MB/s 00:02 |
#cd asterisk-
asterisk-11.3.0/ asterisk-core-sounds-ru-alaw-current.tar.gz asterisk-11.3.0.tar.gz |
#cd asterisk-
asterisk-11.3.0/ asterisk-core-sounds-ru-alaw-current.tar.gz asterisk-11.3.0.tar.gz |
#apt-get install srtp
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package srtp |
#apt-get install srtp
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package srtp |
#apt-get install libsrtp0-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libsrtp0-dev 0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded. Need to get 84.2 kB of archives. After this operation, 385 kB of additional disk space will be used. Get:1 http://192.168.15.253/debian/ squeeze/main libsrtp0-dev i386 1.4.4~dfsg-6 [84.2 kB] Fetched 84.2 kB in 0s (3,280 kB/s) Selecting previously deselected package libsrtp0-dev. (Reading database ... 132303 files and directories currently installed.) Unpacking libsrtp0-dev (from .../libsrtp0-dev_1.4.4~dfsg-6_i386.deb) ... Setting up libsrtp0-dev (1.4.4~dfsg-6) ... |
#apt-get install libsrtp0-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libsrtp0-dev 0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded. Need to get 84.2 kB of archives. After this operation, 385 kB of additional disk space will be used. Get:1 http://192.168.15.253/debian/ squeeze/main libsrtp0-dev i386 1.4.4~dfsg-6 [84.2 kB] Fetched 84.2 kB in 0s (3,280 kB/s) Selecting previously deselected package libsrtp0-dev. (Reading database ... 132303 files and directories currently installed.) Unpacking libsrtp0-dev (from .../libsrtp0-dev_1.4.4~dfsg-6_i386.deb) ... Setting up libsrtp0-dev (1.4.4~dfsg-6) ... |
#apt-get install libssl-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: zlib1g-dev The following NEW packages will be installed: libssl-dev zlib1g-dev 0 upgraded, 2 newly installed, 0 to remove and 13 not upgraded. Need to get 2,349 kB of archives. After this operation, 6,443 kB of additional disk space will be used. ... Get:2 http://192.168.15.253/debian/ squeeze/main libssl-dev i386 0.9.8o-4squeeze14 [2,163 kB] Fetched 2,349 kB in 3s (731 kB/s) Selecting previously deselected package zlib1g-dev. (Reading database ... 132348 files and directories currently installed.) Unpacking zlib1g-dev (from .../zlib1g-dev_1%3a1.2.3.4.dfsg-3_i386.deb) ... Selecting previously deselected package libssl-dev. Unpacking libssl-dev (from .../libssl-dev_0.9.8o-4squeeze14_i386.deb) ... Processing triggers for man-db ... Setting up zlib1g-dev (1:1.2.3.4.dfsg-3) ... Setting up libssl-dev (0.9.8o-4squeeze14) ... |
#apt-get install libssl-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: zlib1g-dev The following NEW packages will be installed: libssl-dev zlib1g-dev 0 upgraded, 2 newly installed, 0 to remove and 13 not upgraded. Need to get 2,349 kB of archives. After this operation, 6,443 kB of additional disk space will be used. ... Get:2 http://192.168.15.253/debian/ squeeze/main libssl-dev i386 0.9.8o-4squeeze14 [2,163 kB] Fetched 2,349 kB in 3s (731 kB/s) Selecting previously deselected package zlib1g-dev. (Reading database ... 132348 files and directories currently installed.) Unpacking zlib1g-dev (from .../zlib1g-dev_1%3a1.2.3.4.dfsg-3_i386.deb) ... Selecting previously deselected package libssl-dev. Unpacking libssl-dev (from .../libssl-dev_0.9.8o-4squeeze14_i386.deb) ... Processing triggers for man-db ... Setting up zlib1g-dev (1:1.2.3.4.dfsg-3) ... Setting up libssl-dev (0.9.8o-4squeeze14) ... |
#apt-get install libncurses5-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libncurses5-dev 0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded. Need to get 1,597 kB of archives. After this operation, 6,685 kB of additional disk space will be used. Get:1 http://192.168.15.253/debian/ squeeze/main libncurses5-dev i386 5.7+20100313-5 [1,597 kB] Fetched 1,597 kB in 0s (10.4 MB/s) Selecting previously deselected package libncurses5-dev. (Reading database ... 133610 files and directories currently installed.) Unpacking libncurses5-dev (from .../libncurses5-dev_5.7+20100313-5_i386.deb) ... Processing triggers for man-db ... Setting up libncurses5-dev (5.7+20100313-5) ... |
#apt-get install libncurses5-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libncurses5-dev 0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded. Need to get 1,597 kB of archives. After this operation, 6,685 kB of additional disk space will be used. Get:1 http://192.168.15.253/debian/ squeeze/main libncurses5-dev i386 5.7+20100313-5 [1,597 kB] Fetched 1,597 kB in 0s (10.4 MB/s) Selecting previously deselected package libncurses5-dev. (Reading database ... 133610 files and directories currently installed.) Unpacking libncurses5-dev (from .../libncurses5-dev_5.7+20100313-5_i386.deb) ... Processing triggers for man-db ... Setting up libncurses5-dev (5.7+20100313-5) ... |
#apt-get install libsqlite3-dev
Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: sqlite3-doc The following NEW packages will be installed: libsqlite3-dev 0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded. Need to get 474 kB of archives. After this operation, 1,069 kB of additional disk space will be used. Get:1 http://192.168.15.253/debian/ squeeze/main libsqlite3-dev i386 3.7.3-1 [474 kB] Fetched 474 kB in 0s (8,037 kB/s) Selecting previously deselected package libsqlite3-dev. (Reading database ... 134663 files and directories currently installed.) Unpacking libsqlite3-dev (from .../libsqlite3-dev_3.7.3-1_i386.deb) ... Setting up libsqlite3-dev (3.7.3-1) ... |
#apt-get install libsqlite3-dev
Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: sqlite3-doc The following NEW packages will be installed: libsqlite3-dev 0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded. Need to get 474 kB of archives. After this operation, 1,069 kB of additional disk space will be used. Get:1 http://192.168.15.253/debian/ squeeze/main libsqlite3-dev i386 3.7.3-1 [474 kB] Fetched 474 kB in 0s (8,037 kB/s) Selecting previously deselected package libsqlite3-dev. (Reading database ... 134663 files and directories currently installed.) Unpacking libsqlite3-dev (from .../libsqlite3-dev_3.7.3-1_i386.deb) ... Setting up libsqlite3-dev (3.7.3-1) ... |
#./configure
checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... checking for initscr in -lcurses... yes checking curses.h usability... yes checking curses.h presence... yes checking for curses.h... yes checking for initscr in -lncurses... yes checking for curses.h... (cached) yes checking for xml2-config... no configure: *** XML documentation will not be available because the 'libxml2' development package is missing. configure: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option configure: *** or install the 'libxml2' development package. |
#./configure
checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... checking for initscr in -lcurses... yes checking curses.h usability... yes checking curses.h presence... yes checking for curses.h... yes checking for initscr in -lncurses... yes checking for curses.h... (cached) yes checking for xml2-config... no configure: *** XML documentation will not be available because the 'libxml2' development package is missing. configure: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option configure: *** or install the 'libxml2' development package. |
#./configure --desable-xmldoc
configure: error: unrecognized option: `--desable-xmldoc' Try `./configure --help' for more information |
#./configure --desable-xmldoc
configure: error: unrecognized option: `--desable-xmldoc' Try `./configure --help' for more information |
#./configure --disable-xmldoc
checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... $$$$$ $$$ $$$$7. $$ (TM) $$$$$$$. .7$$$$$$ $$ $$$$$$$$$$$$7$$$$$$$$$.$$$$$$ $$$$$$$$$$$$$$$$. configure: Package configured for: configure: OS type : linux-gnu configure: Host CPU : i686 configure: build-cpu:vendor:os: i686 : pc : linux-gnu : configure: host-cpu:vendor:os: i686 : pc : linux-gnu : |
#./configure --disable-xmldoc
checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... $$$$$ $$$ $$$$7. $$ (TM) $$$$$$$. .7$$$$$$ $$ $$$$$$$$$$$$7$$$$$$$$$.$$$$$$ $$$$$$$$$$$$$$$$. configure: Package configured for: configure: OS type : linux-gnu configure: Host CPU : i686 configure: build-cpu:vendor:os: i686 : pc : linux-gnu : configure: host-cpu:vendor:os: i686 : pc : linux-gnu : |
#make
make[1]: Entering directory `/root/asterisk-11.3.0' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" menuselect make[2]: Entering directory `/root/asterisk-11.3.0/menuselect' gcc -g -D_GNU_SOURCE -Wall -c -o menuselect.o menuselect.c gcc -g -D_GNU_SOURCE -Wall -c -o strcompat.o strcompat.c gcc -g -D_GNU_SOURCE -Wall -c -o menuselect_stub.o menuselect_stub.c make[3]: Entering directory `/root/asterisk-11.3.0/menuselect/mxml' gcc -Os -g -Wall -c mxml-attr.c gcc -Os -g -Wall -c mxml-entity.c gcc -Os -g -Wall -c mxml-file.c ... [LD] res_mutestream.o -> res_mutestream.so [CC] res_phoneprov.c -> res_phoneprov.o [LD] res_phoneprov.o -> res_phoneprov.so [CC] res_realtime.c -> res_realtime.o [LD] res_realtime.o -> res_realtime.so [CC] res_rtp_asterisk.c -> res_rtp_asterisk.o ^Cmake[2]: *** Deleting file `res_rtp_asterisk.o' make[2]: *** [res_rtp_asterisk.o] Interrupt make[1]: *** [res] Interrupt make: *** [_cleantest_all] Interrupt |
#make
make[1]: Entering directory `/root/asterisk-11.3.0' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" menuselect make[2]: Entering directory `/root/asterisk-11.3.0/menuselect' gcc -g -D_GNU_SOURCE -Wall -c -o menuselect.o menuselect.c gcc -g -D_GNU_SOURCE -Wall -c -o strcompat.o strcompat.c gcc -g -D_GNU_SOURCE -Wall -c -o menuselect_stub.o menuselect_stub.c make[3]: Entering directory `/root/asterisk-11.3.0/menuselect/mxml' gcc -Os -g -Wall -c mxml-attr.c gcc -Os -g -Wall -c mxml-entity.c gcc -Os -g -Wall -c mxml-file.c ... [LD] res_mutestream.o -> res_mutestream.so [CC] res_phoneprov.c -> res_phoneprov.o [LD] res_phoneprov.o -> res_phoneprov.so [CC] res_realtime.c -> res_realtime.o [LD] res_realtime.o -> res_realtime.so [CC] res_rtp_asterisk.c -> res_rtp_asterisk.o ^Cmake[2]: *** Deleting file `res_rtp_asterisk.o' make[2]: *** [res_rtp_asterisk.o] Interrupt make[1]: *** [res] Interrupt make: *** [_cleantest_all] Interrupt |
#make clean
rm -f defaults.h rm -f include/asterisk/build.h rm -f main/version.c rm -f doc/core-en_US.xml rm -f doc/full-en_US.xml make[1]: Entering directory `/root/asterisk-11.3.0/menuselect' rm -f menuselect cmenuselect gmenuselect nmenuselect menuselect.o strcompat.o menuselect_stub.o menuselect_curses.o make[2]: Entering directory `/root/asterisk-11.3.0/menuselect/mxml' /bin/rm -f mxmldoc.o testmxml.o mxml-attr.o mxml-entity.o mxml-file.o mxml-index.o mxml-node.o mxml-search.o mxml-set.o mxml-private.o mxml-string.o libmxml.a mxmldoc testmxml mxml.xml /bin/rm -f mxmldoc-static libmxml.a /bin/rm -f *.bck *.bak /bin/rm -f config.cache config.log config.status config.h /bin/rm -f -r autom4te*.cache make[2]: Leaving directory `/root/asterisk-11.3.0/menuselect/mxml' make[1]: Leaving directory `/root/asterisk-11.3.0/menuselect' cp -f .cleancount .lastclean |
#make clean
rm -f defaults.h rm -f include/asterisk/build.h rm -f main/version.c rm -f doc/core-en_US.xml rm -f doc/full-en_US.xml make[1]: Entering directory `/root/asterisk-11.3.0/menuselect' rm -f menuselect cmenuselect gmenuselect nmenuselect menuselect.o strcompat.o menuselect_stub.o menuselect_curses.o make[2]: Entering directory `/root/asterisk-11.3.0/menuselect/mxml' /bin/rm -f mxmldoc.o testmxml.o mxml-attr.o mxml-entity.o mxml-file.o mxml-index.o mxml-node.o mxml-search.o mxml-set.o mxml-private.o mxml-string.o libmxml.a mxmldoc testmxml mxml.xml /bin/rm -f mxmldoc-static libmxml.a /bin/rm -f *.bck *.bak /bin/rm -f config.cache config.log config.status config.h /bin/rm -f -r autom4te*.cache make[2]: Leaving directory `/root/asterisk-11.3.0/menuselect/mxml' make[1]: Leaving directory `/root/asterisk-11.3.0/menuselect' cp -f .cleancount .lastclean |
#make menuconfig
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" cmenuselect make[1]: Entering directory `/root/asterisk-11.3.0/menuselect' gcc -g -D_GNU_SOURCE -Wall -c -o menuselect.o menuselect.c gcc -g -D_GNU_SOURCE -Wall -c -o strcompat.o strcompat.c gcc -g -D_GNU_SOURCE -Wall -c -o menuselect_curses.o menuselect_curses.c make[2]: Entering directory `/root/asterisk-11.3.0/menuselect/mxml' if test -f config.status; then \ ./config.status --recheck; \ ./config.status; \ else \ ... make[1]: Nothing to be done for `gmenuselect'. make[1]: Leaving directory `/root/asterisk-11.3.0/menuselect' make[1]: Entering directory `/root/asterisk-11.3.0' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" menuselect make[2]: Entering directory `/root/asterisk-11.3.0/menuselect' gcc -g -D_GNU_SOURCE -Wall -c -o menuselect_stub.o menuselect_stub.c gcc -o menuselect menuselect.o strcompat.o menuselect_stub.o mxml/libmxml.a make[2]: Leaving directory `/root/asterisk-11.3.0/menuselect' menuselect changes NOT saved! make[1]: Leaving directory `/root/asterisk-11.3.0' |
#make menuconfig
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" cmenuselect make[1]: Entering directory `/root/asterisk-11.3.0/menuselect' gcc -g -D_GNU_SOURCE -Wall -c -o menuselect.o menuselect.c gcc -g -D_GNU_SOURCE -Wall -c -o strcompat.o strcompat.c gcc -g -D_GNU_SOURCE -Wall -c -o menuselect_curses.o menuselect_curses.c make[2]: Entering directory `/root/asterisk-11.3.0/menuselect/mxml' if test -f config.status; then \ ./config.status --recheck; \ ./config.status; \ else \ ... make[1]: Entering directory `/root/asterisk-11.3.0/menuselect' make[1]: Nothing to be done for `gmenuselect'. make[1]: Leaving directory `/root/asterisk-11.3.0/menuselect' make[1]: Entering directory `/root/asterisk-11.3.0' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" menuselect make[2]: Entering directory `/root/asterisk-11.3.0/menuselect' make[2]: Leaving directory `/root/asterisk-11.3.0/menuselect' Terminal must be at least 80 x 27. menuselect changes NOT saved! make[1]: Leaving directory `/root/asterisk-11.3.0' |
#make clean
rm -f defaults.h rm -f include/asterisk/build.h rm -f main/version.c rm -f doc/core-en_US.xml rm -f doc/full-en_US.xml make[1]: Entering directory `/root/asterisk-11.3.0/menuselect' rm -f menuselect cmenuselect gmenuselect nmenuselect menuselect.o strcompat.o menuselect_stub.o menuselect_curses.o make[2]: Entering directory `/root/asterisk-11.3.0/menuselect/mxml' /bin/rm -f mxmldoc.o testmxml.o mxml-attr.o mxml-entity.o mxml-file.o mxml-index.o mxml-node.o mxml-search.o mxml-set.o mxml-private.o mxml-string.o libmxml.a mxmldoc testmxml mxml.xml /bin/rm -f mxmldoc-static libmxml.a /bin/rm -f *.bck *.bak /bin/rm -f config.cache config.log config.status config.h /bin/rm -f -r autom4te*.cache make[2]: Leaving directory `/root/asterisk-11.3.0/menuselect/mxml' make[1]: Leaving directory `/root/asterisk-11.3.0/menuselect' cp -f .cleancount .lastclean |
#make clean
rm -f defaults.h rm -f include/asterisk/build.h rm -f main/version.c rm -f doc/core-en_US.xml rm -f doc/full-en_US.xml make[1]: Entering directory `/root/asterisk-11.3.0/menuselect' rm -f menuselect cmenuselect gmenuselect nmenuselect menuselect.o strcompat.o menuselect_stub.o menuselect_curses.o make[2]: Entering directory `/root/asterisk-11.3.0/menuselect/mxml' /bin/rm -f mxmldoc.o testmxml.o mxml-attr.o mxml-entity.o mxml-file.o mxml-index.o mxml-node.o mxml-search.o mxml-set.o mxml-private.o mxml-string.o libmxml.a mxmldoc testmxml mxml.xml /bin/rm -f mxmldoc-static libmxml.a /bin/rm -f *.bck *.bak /bin/rm -f config.cache config.log config.status config.h /bin/rm -f -r autom4te*.cache make[2]: Leaving directory `/root/asterisk-11.3.0/menuselect/mxml' make[1]: Leaving directory `/root/asterisk-11.3.0/menuselect' cp -f .cleancount .lastclean |
#./configure --disable-xmldoc
checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... $$$$$ $$$ $$$$7. $$ (TM) $$$$$$$. .7$$$$$$ $$ $$$$$$$$$$$$7$$$$$$$$$.$$$$$$ $$$$$$$$$$$$$$$$. configure: Package configured for: configure: OS type : linux-gnu configure: Host CPU : i686 configure: build-cpu:vendor:os: i686 : pc : linux-gnu : configure: host-cpu:vendor:os: i686 : pc : linux-gnu : |
#./configure --disable-xmldoc
checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... $$$$$ $$$ $$$$7. $$ (TM) $$$$$$$. .7$$$$$$ $$ $$$$$$$$$$$$7$$$$$$$$$.$$$$$$ $$$$$$$$$$$$$$$$. configure: Package configured for: configure: OS type : linux-gnu configure: Host CPU : i686 configure: build-cpu:vendor:os: i686 : pc : linux-gnu : configure: host-cpu:vendor:os: i686 : pc : linux-gnu : |
#make menuconfig
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/root/asterisk-11.3.0/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/root/asterisk-11.3.0/menuselect' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" cmenuselect make[1]: Entering directory `/root/asterisk-11.3.0/menuselect' gcc -g -D_GNU_SOURCE -Wall -c -o menuselect.o menuselect.c gcc -g -D_GNU_SOURCE -Wall -c -o strcompat.o strcompat.c gcc -g -D_GNU_SOURCE -Wall -c -o menuselect_curses.o menuselect_curses.c make[2]: Entering directory `/root/asterisk-11.3.0/menuselect/mxml' ... make[2]: Leaving directory `/root/asterisk-11.3.0/menuselect' Generating input for menuselect ... CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" menuselect make[2]: Entering directory `/root/asterisk-11.3.0/menuselect' gcc -g -D_GNU_SOURCE -Wall -c -o menuselect_stub.o menuselect_stub.c gcc -o menuselect menuselect.o strcompat.o menuselect_stub.o mxml/libmxml.a make[2]: Leaving directory `/root/asterisk-11.3.0/menuselect' Terminal must be at least 80 x 27. menuselect changes NOT saved! make[1]: Leaving directory `/root/asterisk-11.3.0' |
#make menuconfig
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/root/asterisk-11.3.0/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/root/asterisk-11.3.0/menuselect' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" cmenuselect make[1]: Entering directory `/root/asterisk-11.3.0/menuselect' gcc -g -D_GNU_SOURCE -Wall -c -o menuselect.o menuselect.c gcc -g -D_GNU_SOURCE -Wall -c -o strcompat.o strcompat.c gcc -g -D_GNU_SOURCE -Wall -c -o menuselect_curses.o menuselect_curses.c make[2]: Entering directory `/root/asterisk-11.3.0/menuselect/mxml' ... make[2]: Entering directory `/root/asterisk-11.3.0/menuselect' make[2]: `makeopts' is up to date. make[2]: Leaving directory `/root/asterisk-11.3.0/menuselect' Generating input for menuselect ... CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" menuselect make[2]: Entering directory `/root/asterisk-11.3.0/menuselect' gcc -g -D_GNU_SOURCE -Wall -c -o menuselect_stub.o menuselect_stub.c gcc -o menuselect menuselect.o strcompat.o menuselect_stub.o mxml/libmxml.a make[2]: Leaving directory `/root/asterisk-11.3.0/menuselect' Terminal must be at least 80 x 27. |
#make menuconfig
************************************************** Press 'h' for help. --- core --- [*] app_authenticate [*] app_cdr [*] app_celgenuserevent [*] app_channelredirect [*] app_chanspy [*] app_confbridge [*] app_controlplayback ... [*] app_parkandannounce [*] app_playback [*] app_playtones [*] app_privacy ... More ... Extension Macros Depends on: chan_local(M)(M) Call Parking and Announce Application Depends on: app_confbridge(M) ore, Replaced by: app_stack (GoSub) |
#make menuconfig
************************************************** Press 'h' for help. --- core --- [*] app_authenticate [*] app_cdr [*] app_celgenuserevent [*] app_channelredirect [*] app_chanspy [*] app_confbridge [*] app_controlplayback ... [*] app_page [*] app_parkandannounce [*] app_playback [*] app_playtones [*] app_privacy ... More ... Call Parking and Announce Application Depends on: app_confbridge(M) Support Level: core ore, Replaced by: app_stack (GoSub) |
#make -j32
make[1]: Entering directory `/root/asterisk-11.3.0' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[2]: Entering directory `/root/asterisk-11.3.0/menuselect' make[2]: `makeopts' is up to date. make[2]: Leaving directory `/root/asterisk-11.3.0/menuselect' Building Documentation For: Generating embedded module rules ... channels pbx apps codecs formats cdr cel bridges funcs tests main res [CC] pbx_ael.c -> pbx_ael.o [CC] chan_agent.c -> chan_agent.o [CC] cdr_csv.c -> cdr_csv.o [CC] astcanary.c -> astcanary.o ... creating makelist creating config.h [LD] abstract_jb.o acl.o adsi.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autochan.o autoservice.o bridging.o callerid.o ccss.o cdr.o cel.o channel.o channel_internal_api.o chanvars.o cli.o config.o config_options.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o fixedjitterbuf.o format.o forma make[1]: Leaving directory `/root/asterisk-11.3.0' +--------- Asterisk Build Complete ---------+ + Asterisk has successfully been built, and + + can be installed by running: + + + + make install + +-------------------------------------------+ |
#make -j32
make[1]: Entering directory `/root/asterisk-11.3.0' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[2]: Entering directory `/root/asterisk-11.3.0/menuselect' make[2]: `makeopts' is up to date. make[2]: Leaving directory `/root/asterisk-11.3.0/menuselect' Building Documentation For: Generating embedded module rules ... channels pbx apps codecs formats cdr cel bridges funcs tests main res [CC] pbx_ael.c -> pbx_ael.o [CC] chan_agent.c -> chan_agent.o [CC] cdr_csv.c -> cdr_csv.o [CC] astcanary.c -> astcanary.o ... creating makelist creating config.h [LD] abstract_jb.o acl.o adsi.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autochan.o autoservice.o bridging.o callerid.o ccss.o cdr.o cel.o channel.o channel_internal_api.o chanvars.o cli.o config.o config_options.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o fixedjitterbuf.o format.o forma make[1]: Leaving directory `/root/asterisk-11.3.0' +--------- Asterisk Build Complete ---------+ + Asterisk has successfully been built, and + + can be installed by running: + + + + make install + +-------------------------------------------+ |
#make install
make[1]: Entering directory `/root/asterisk-11.3.0' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[2]: Entering directory `/root/asterisk-11.3.0/menuselect' make[2]: `makeopts' is up to date. make[2]: Leaving directory `/root/asterisk-11.3.0/menuselect' make[1]: Leaving directory `/root/asterisk-11.3.0' Installing modules from channels... Installing modules from pbx... Installing modules from apps... Installing modules from codecs... ... res_config_mysql.so res_config_odbc.so res_config_pgsql.so res_config_sqlite.so res_curl.so res_http_post.so res_jabber.so res_odbc.so res_snmp.so WARNING WARNING WARNING |
#make install
make[1]: Entering directory `/root/asterisk-11.3.0' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[2]: Entering directory `/root/asterisk-11.3.0/menuselect' make[2]: `makeopts' is up to date. make[2]: Leaving directory `/root/asterisk-11.3.0/menuselect' make[1]: Leaving directory `/root/asterisk-11.3.0' Installing modules from channels... Installing modules from pbx... Installing modules from apps... Installing modules from codecs... ... res_config_mysql.so res_config_odbc.so res_config_pgsql.so res_config_sqlite.so res_curl.so res_http_post.so res_jabber.so res_odbc.so res_snmp.so WARNING WARNING WARNING |
#asterisk -rvvv
Asterisk 11.3.0, 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux1 (pid = 4614) linux1*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#asterisk -rvvv
Asterisk 11.3.0, 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux1 (pid = 4614) linux1*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#asterisk -rvvv
Asterisk 11.3.0, 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux1 (pid = 4614) linux1*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#asterisk -rvvv
Asterisk 11.3.0, 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux1 (pid = 4614) linux1*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#asterisk -rvvv
Asterisk 11.3.0, 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. ========================================================================= Connected to Asterisk 11.3.0 currently running on linux1 (pid = 15536) [Apr 12 16:43:30] NOTICE[15536]: db.c:246 db_open: Database conversion succeeded! == Manager registered action DBGet ... -- <SIP/1102-00000006> Playing 'beep.gsm' (language 'en') -- Recording the message -- x=0, open writing: /var/spool/asterisk/voicemail/local/1101/tmp/Twru73 format: wav49, 0x9bcd344 -- x=1, open writing: /var/spool/asterisk/voicemail/local/1101/tmp/Twru73 format: gsm, 0x9bcd694 -- x=2, open writing: /var/spool/asterisk/voicemail/local/1101/tmp/Twru73 format: wav, 0x9bcb4f4 -- User hung up == Spawn extension (local, 1101, 4) exited non-zero on 'SIP/1102-00000006' linux1*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#asterisk -rvvv
Asterisk 11.3.0, 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. ========================================================================= Connected to Asterisk 11.3.0 currently running on linux1 (pid = 15536) [Apr 12 16:43:30] NOTICE[15536]: db.c:246 db_open: Database conversion succeeded! == Manager registered action DBGet ... -- <SIP/1102-00000006> Playing 'beep.gsm' (language 'en') -- Recording the message -- x=0, open writing: /var/spool/asterisk/voicemail/local/1101/tmp/Twru73 format: wav49, 0x9bcd344 -- x=1, open writing: /var/spool/asterisk/voicemail/local/1101/tmp/Twru73 format: gsm, 0x9bcd694 -- x=2, open writing: /var/spool/asterisk/voicemail/local/1101/tmp/Twru73 format: wav, 0x9bcb4f4 -- User hung up == Spawn extension (local, 1101, 4) exited non-zero on 'SIP/1102-00000006' linux1*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#!/bin/sh JID="$1" shift echo $* | sendxmpp -f /var/lib/asterisk/.sendxmpprc "$JID"
Время первой команды журнала | 13:00:14 2013- 4-12 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:42:27 2013- 4-12 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 98 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 10.20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.04 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.48 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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