13
1
, , :
<_>{}
<_>{}
<_>[{}<_>]
{_}
.
:
login .
logout .
open .
read .
write .
exec .
open, read, write, exec.
:
10.10.2002\t17:00:00:000\tuser\tlogin\n
10.10.2002\t17:00:03:750\tuser\tread\t/home/user/file1\n
10.10.2002\t17:00:10:950\tuser\tlogout\n
1. :
shell?
SED?
man, , , chmod, / ?
2. shell, ( ). : ftpd???.log (/usr/tmp).
3. shell, , ( , ). : 30 . (/usr/tmp) , "ftpd: session closed ok".
4. shell , sed ( ).
:
;
, :
o
o
o ;
, , .
5. SED SHELL, , . .
2
, , :
<_>{}
<_>{}
|
|
<_>[{}<_>]
{_}
.
:
login .
logout .
open .
read .
write .
exec .
open, read, write, exec.
:
10.10.2002\t17:00:00:000\tuser\tlogin\n
10.10.2002\t17:00:03:750\tuser\tread\t/home/user/file1\n
10.10.2002\t17:00:10:950\tuser\tlogout\n
1. :
AWK?
Perl?
Perl?
2. Perl ( )
:
;
, :
o
o
o ;
, , ;
.
3. AWK.
4. Perl, , . .
3
! , , .
1. :
, ?
close?
?
2. , 1-4. 1 perror() . 4 .
3. error10 10 . .
4. ( ), 1- . WindowsNT/2000/XP.
5. , , , . :
o ;
o ;
o read10, write10 - ;
o (write10 10 , read10 - ).
|
|
4
1. :
?
;
"" - , . , , .
2. getblk brelse , , , " - ". . . - Windows.
3. , . - , , . 2 . - Unix.
5
1. Windows. , , ( ). - , . . . : , .
2. :
UNIX;
UNIX;
Linux?
6
1. UNIX. trykill :
o 2 ;
o A B, , A B ;
o A root.
2. :
Windows;
zombie-, UNIX;
UNIX.
7
1. X Window. 3. , .
2. WINAPI. , (EDIT) (BUTTON). (, , ) ( ). , , .
3. :
XClearArea() pixmap? (UNIX)
X- ? (UNIX)
? (Windows)
? , , ? (Windows)
8
C transport, UNIX. , TCP c, lo.
|
|
transport TCP/IP TCP.
: transport ; transport.