Release Notes
SCO TCP/IP
Derived from
LACHMAN SYSTEM V STREAMS TCP
User's Guige
( )
The Santa Cruz Operation
.
____________________________________________________________________
1. .
TCP/IP? 1-1
? 1-3
ICMP 1-5
1-6
1-7
2. .
2-1
TCP/IP 2-2
UNIX 2-4
2-6
2-9
2-10
2-11
3. .
rcmd 3-1
3-3
4. .
4-1
telnet 4-2
rlogin 4-11
5. .
5-1
ftp 5-2
rcp 5-21
6. .
6-1
6-3
TSP 6-4
1.
.
____________________________________________________________________
TCP/IP? 1-1
(IP) 1-1
(TCP) 1-2
1-3
1-3
1-3
1-4
ICMP 1-5
1-6
1-7
1-7
TCP/IP 1-8
LAN Ethernet 1-9
1-1
TCP/IP?
_________________
TCP/IP - ,
. "TCP" "
", "IP" " ".
,
, .
, ,
TCP/IP, .
,
.
, DARPA
. ,
, TCP/IP.
.
(
" "
.
"internet").
"hosts"( ) "nodes"( ).
TCP/IP ,
, .
.
, .
.
.
(IP).
-----------------------------------------
IP .
- .
"" ,
.
()
- .
,
. ,
.
,
. TCP .
1-2
, .
.
, . (
,
, ,
).
,
.
, ; ,
IP ,
. - ,
.
(TCP).
---------------------------------
(TCP) IP
.
, , ,
,
, ,
.
TCP - ,
, ,
, ,
. , , ,
,
TCP.
TCP , , .
.
,
. ,
. "-"
TCP . TCP
-
.
(
) TCP,
.
1-3
.
____________________________________________________________________
.
.
.
------
, ,
. - ,
.
. ,
-,
. .
.
- .
.
, -.
.
---------------
TCP/IP 32
. :
. , ,
, .
(NIC),
SRI Information , .
NIC .
.
, ,
. ,
. , ,
. , 32
,
. ,
,
.
: ,,.
:
1-4
____________________________________________________________________
7 - , 24 -
14 - , 16 -
21 - , 8 -
32 .
- 0, .
10 11.
, ,
.
, ( ),
( ) ( ).
,
,
32 . ,
128.12.3.5.
.
---------------
TCP 16 , ,
.
, ftp (
).
- , ,
TCP.
netstat(TC).
SCO TCP/IP Socket Programmer's Guide.
1-5
ICMP.
____________________________________________________________________
ICMP - .
. ICMP
, .
,
" " " "
. ICMP ,
, ,
.
1-6
.
____________________________________________________________________
, - ,
, -
.
. , IP -
, TCP -
, , IP6,
, .
, , TCP
-.
TCP/IP,
. ,
,
.
, IP,
. , , TCP, ,
,
.
, telnet(TC) ftp(TC)
, .
, ,
.
1-7
.
___________________________________________________________________
TCP/IP.
, -
.
:
-
- TCP/IP
- LAN Ethernet
.
-----------------------------------
Tannenbaum,Andrew S., Computer Netwoks, (Prentice-Hall,Englewood
Cliffs.,(1981). ISBN 0-13-165183-8.
Stallings,william, Data and Computer Communications. (Macmillan
Publishing Company, New York, 1988), 2nd Ed. ISBN 0-02-415451-2.
.
-------------------------
, Inc.,1430 Broadway, New York, NY 10018:
7498 (IS 7498),"Information processing
systems - Open Systems Interconnection - Basic Reference Model,"
(Internetional Organization for Standardization (ISO), 1984).
"OSI Reference Model".
X.200, "OSI Reference Model for CCITT Applications",
(Inernational Telegraph and Telephone Consultative Committee (CCITT)
Geneva,1985).ISBN 92-61-02341-X.
, ISO ,
(CCITT).
8 - Fascicle VIII.5 .
1-8
-
.
CCITT . 1985
10 ,
"Fascicles", 42 .
TCP/IP.
---------------------
.
------------------------
Comer,Douglas, Internetworking with TCP/IP: Principles,Protocols,
and Architecture,(Prentice-Hall,Englewood Cliffs,N.J,1988).
ISBN 13-470154-2.
,
, "Requests For Comments (RFCs)(
)".
Stallings, William S., et.al., Handbook of Computer Communications
Standarts, 3: Department of Defence (DOD) Protocol Standarts,
(Macmillan Publishing Company, New York, 1988).ISBN 0-02-948072-8.
Devidson,JOHN, An Introduction to TCP/IP, (Springer-verlag Inc., New
York 1988). ISBN 0-387-96651-X.
.
-------------------------
Feinler,Elizabeth J.,et.al. (Eds.),DDN Protocol Handbook, (SRI
International, Menlo Park,Calif.,1985) 3 .
1-9
DDN Protocol Handbook - ,
RFCs
(IENs). , RFC 791
IEN 48. RFCs IENs
, , ,
ARPA ,
DDN Network Information
Center. 1985 , DDN Protocol Handbook ,
.
.
3 . ,
, RFC 961 .
LAN ETHERNET.
-----------------------------
.
------------------------
Stallings, William S., et.al., Handbook of Computer Communications
Standarts, 2: Department of Defence (DOD) Protocol Standarts,
(Macmillan Publishing Company, New York, 1988).ISBN 0-02-948072-8.
Chorafas, Dimitris N., Desining and Implementing Local Area Networks
(McGraw-Hill,Inc.,New York, 1984). ISBN 0-07-010819-6.
Hammond,Joseph L.,and O'Reilly, Peter J.P., Performance Analysis of
Local Computer Networks, (Addison-Wesly,Reading,Mass.,1986).
ISBN 0-201-11530-1.
,
.
.
-------------------------
ANSI/IEEE Std 802.2-1985(ISO Draft International Standard 8802/2),
American National Standard: IEEE Standards for Local Area Netwirks:
Logical Link Control (The Institute of Electrical and Electronic
Engineers,Inc.,1984). ISBN 471-82748-7.
ANSI/IEEE Std 802.3-1985(ISO Draft International Standard 8802/3),
American National Standard: IEEE Standards for Local Area Netwirks:
Carrier Sense Multiple Access with Collision Detection (CSMA/CD),
Access Method and Physical Layer Specifications (The Institute of
Electrical and Electronic Engineers,Inc.,1985). ISBN 471-82749-5.
2.
.
____________________________________________________________________
2-1
TCP/IP 2-2
UNIX 2-4
2-6
2-6
, , 2-7
2-7
2-9
telnet 2-9
rlogin 2-9
2-10
2-11
2-1
.
____________________________________________________________________
UNIX .
, ,
. ,
.
. ,
, :
-
-
-
-
-
-
-
2-2
TCP/IP.
____________________________________________________________________
TCP/IP - Berkeley UNIX ARPANET
. ARPA - Advanced Research Projects Agency. ,
Berkeley UNIX, UNIX
UNIX . ARPANET
.
,
4.3BSD(Berkeley UNIX) UNIX-
, ARPANET .
, TCP/IP Berkeley UNIX
r- ( -r). rcp,
rcmd, rlogin. 4.3BSD UNIX
,
UNIX.
, telnet ftp ARPANET.
. ,
Department
of Defense (DoD) Internet.
.
. .
TCP/IP .
-------------------------
____________________________________________________________________
ftp(TC)
ifconfig(ADMN)
logger(TC)
mkhosts(ADMN)
netstat(TC)
rcmd(TC)
2-3
rcp(TC)
rlogin(TC)
ruptime(TC)
rwho(TC)
slattach(ADMN)
sldetach(ADMN)
talk(TC)
telnet(TC) DARPA TELNET
trpt(ADMN)
2-4
UNIX.
____________________________________________________________________
UNIX - , UNIX
UNIX, , Ethernet.
UNIX
.
, .(
IP ).
UNIX - - , ,
UNIX,
, UNIX.
. ,
fork(S) exec(S) system(S)
.
- ,
.
UNIX , ,
.
, UNIX,
:
- ,
.
-
( ""
,
).
- . , ,
,
. ,
. ,
,
UNIX , pipes,
.
- .
- ,
( chmod(C)).
2-5
- ,
.
- ,
.
- .
- UNIX ,
.
, UNIX:
- (
daemons),
-
-
2-6
.
____________________________________________________________________
,
, . :
-
-
-
.
------------------------
c rcp, rcmd
rlogin. rcp
. rlogin ,
;
, . rcmd
. ( rcmd
, , ;
, rlogin
.
login).
.
/etc/hosts.equiv ,
. .rhosts ""
. (
/.rhosts).
/etc/password, .
:
- .rhosts /etc/password
- /etc/hosts.equiv /etc/password
/etc/password
.
, .
sysadmsh(ADM),
/etc/password .
XENIX , /etc/password,
. UNIX.
2-7
, ,
. .rhosts ,
. ,
/etc/hosts.equiv ,
( ). ,
/etc/hosts.equiv ,
( ).
.rhosts .
/etc/hosts.equiv
. /etc/hosts.equiv
.rhosts ,
, /etc/hosts.equiv
.
, .
----------------------
,
.
TCP/IP
, telnet ftp.
.
,
.
,
. .. ,
. .
, ,
.
,
() .
.
.
--------------
. ,
.
.
2-8
,
,
. ftp (
" " ),
.
,
( " " ).
2-9
.
____________________________________________________________________
rlogin(TC) ARPANET telnet(TC)
.
. ,
.
UNIX-
, .
, ,
, vi(C).
. ,
, .
telnet rlogin.
4 " ".
telnet.
---------------
. telnet,
, ,
, .
telnet ,
, , , .
. telnet 4
" ".
rlogin.
--------------------------------------------
rlogin
UNIX- .
, .
, ,
. rlogin
UNIX- .
rlogin 4 "
".
2-10
.
____________________________________________________________________
ftp
. ftp,
.
.
ftp ,
, ,
fyp. ftp
( ) .
rcp
. UNIX
, UNIX-
.
ftp rcp 5" ".
2-11
.
____________________________________________________________________
rcmd UNIX
.
, rcmd;
.
shell ,
. rmcd,
- (,
).
,
UNIX UNIX- .
rcmd
,
, ..
.
/usr/hosts.
rcmd 3 " ".
3.
.
____________________________________________________________________
rcmd 3-1
rcmd 3-1
rcmd 3-1
rcmd 3-2
3-2
3-3
3-1
rcmd.
____________________________________________________________________
rcmd
UNIX- .
,
rcmd.
shell . rcmd,
-.( 2).
- , .
,
UNIX UNIX- .
rcmd
,
, ..
.
/usr/hosts.
rcmd.
-----------
rcmd UNIX.
. :
# rcmd ()
rcmd,
:
# ()
, ,
UNIX
rcmd.
.
rcmd.
-----------
,
rcmd. :
3-2
-l , , ,
.
. :
# rcmd -l tom
,
.
.
-n rcmd
.
/dev/null. :
# rcmd -n -l tom
.
rcmd
,
.
rcmd.
---------------------------------
rcmd
who(C) , admin.
.
/tmp/admin.who.
# rcmd admin who > /tmp/admin.who
.
---------------------
rcmd ,
, , templ
, systemx:
$ cat temp1 | rcmd systemx lp
3-3
.
____________________________________________________________________
TCP/IP ,
.. (pipe).( sh(C)
pipe(C) ).
, :
- - rcmd lp
.
- troff(CT).
,
.
- / cpio.
- .
- .
4.
.
____________________________________________________________________
4-1
telnet 4-2
4-2
telnet 4-2
telnet 4-4
4-8
rlogin 4-11
rlogin 4-11
rlogin 4-11
rlogin 4-12
Tilde 4-12
4-1
.
____________________________________________________________________
TCP/IP,
. ""
, .
,
. "" ,
.
:
- telnet(TC)
- rlogin(TC)
telnet
. telnet,
,
, .
telnet, ,
.
.
rlogin telnet,
UNIX. rlogin
,
UNIX. ,
" rlogin" .
4-2
telnet.
____________________________________________________________________
telnet - ,
.
telnet, ,
, .
.
------------------------------
telnet ,
. ,
,
, .
( ^] ). ,
telnet . (
] ).
,
telnet, telnet .
, telnet .
telnet ,
.
.
"" , ,
. telnet ,
, ,
, .
telnet.
-----------------------
telnet UNIX
telnet.
4-3
, .
admin:
telnet admin
.
, ,
/etc/hosts.
, telnet.
. telnet
. :
telnet
.
, ,
open telnet .
" telnet ".
4-4
telnet .
----------------------------
telnet ,
telnet:
telnet>
, .
, (^] ).
, telnet
. open
, telnet
.
, telnet
.
close, , telnet
.
quit, telnet ,
.
Return.
telnet Return.
,
erase (BKSP) kill(Cancel),
, . ,
. telnet send .
.
. ,
. telnet
telnet(TC)
TCP/IP. telnet :
open telnet
.
. telnet
admin:
telnet> open admin
4-5
close
telnet.
quit.
quit telnet .
.
,
.
z telnet .
.
mode mode,
, telnet(TC):
mode [ line | character ]
line
.
character
.
display
, set
toggle. ( set toggle
).
send
.
, telnet(TC):
send [ ao | ayt | bkr | ... ]
ao , telnet
.
,
,
telnet
.
;
,
.
4-6
ayt telnet
.
,
.
,
. ,
, ,
.
brk ,
,
Break
. ,
Break,
.
,
.
ec , telnet,
.
,
erase(BKSP)
. ..
,
ec,
.
,
, ..
.
el
.
,
erase line.
4-7
..
,
el,
.
,
, ..
.
ip
.
,
interrupt . ..
,
ip,
.
,
, ..
.
synch
,
,
.
,
, ,
.
escape telnet .
nop telnet
.
4-8
toggle ,
.
TRUE FALSE.
toggle
telnet(TC):
toggle [ localchars | autoflush | ... ]
set telnet
. set
telnet(TC):
set [ echo | escape | interrupt | ... ]
status
.
?
telnet .
telnet (?),
.
(?),
telnet .
.
--------------------------
"there".
telnet.
.
-------------------------
, telnet.
telnet .
. telnet
:
"Trying..."
, telnet .
, .
telnet (
).
4-9
, ,
().
, ,
.
. ,
, telnet
. quit, telnet
.
+------------------------------------------------------------------+
| laiter$ telnet there |
| Trying 192.9.200.101 ... |
| Connected to there. |
| Escape character is ']'. |
| |
| System V.3.2 UNIX (there.Lachman.COM) |
| |
| login: stevea |
| Password: |
| UNIX System V/386 Release 3.2 |
| there |
| Copyright (C) 1984,1986,1987,1988 AT&T |
| Copyright (C) 1987,1988 Microsoft Corp. |
| All Rights Reserved |
| Login last used: Mon Feb 27 17:14:18 1989 |
| there$ ls -xF |
| bell/ blot/ connect.h connection.c dhry/ |
| hi* hi+.c hi.c hin* hin.c |
| hn* hn.c indent/ intel/ ip_icmp.h|
| maketd+/ linger* linger.c mailstats.c+ maketd/ |
| ot2.c maxmin ot* ot.c ot2* |
| ripsoak* ping+* ping.c profiler/ gt/ |
| t* ripsoak.c sr.sh* st.c sw/ |
| there$ t.c tcp/ tcp.sh* tcp0227/ |
| ^] |
| telnet>quit |
| Connection closed. |
| laiter$ |
+------------------------------------------------------------------+
2.
-------------------
telnet. telnet
.
status , .
telnet open
.
,
, .
4-10
,
. telnet
.
+------------------------------------------------------------------+
| # telnet |
| telnet> status |
| No Connection |
| Escape character is '^]' |
| local echo is off |
| telnet> open there |
| Trying ... |
| Connected to there |
| Escape character is '^]' |
| System V3 UNIX (there) |
| login: mary |
| TERM = (ansi) |
| $ ls |
| passwd |
| volcopy |
| $ ^D |
| Connection closed by foreign host. |
| |
+------------------------------------------------------------------+
4-11
rlogin.
____________________________________________________________________
rlogin(TC) .
rlogin telnet,
UNIX . rlogin
UNIX ,
telnet. , rlogin , telnet,
,
.
, telnet. TERM
,
.
rlogin ,
.
rlogin.
-----------------------
UNIX .
, ,
admin:
rlogin admin
rlogin
. : admin. ,
UNIX
rlogin. /usr/hosts
.
.
rlogin.
--------------------------
rlogin
, (tilde)
(~.).
rlogin
.
4-12
rlogin.
-------------
, rlogin.
:
-ec -e rlogin "c"
(~.)
rlogin. :
rlogin admin -e!
rlogin.
-8 -8 rlogin
8 .
,
,
.
. (
2).
tidle .
-----------------------------
tidle (~),
,
, tidle.
, tidle (~~).
5.
.
____________________________________________________________________
5-1
ftp 5-2
ftp 5-2
ftp 5-2
ftp 5-3
ftp 5-3
.netrc 5-5
ftp 5-6
ftp 5-6
5-18
rcp 5-21
rcp 5-21
rcp 5-22
5-23
5-1
.
____________________________________________________________________
,
. ftp(
) rcp( ).
:
-
-
-
-
ftp(TC)
. ,
. , ftp
.
ftp, ,
ftp , .
ftp .
UNIX, ftp
rcp ,
.
5-2
ftp.
____________________________________________________________________
ftp,
, .
,
, .
ftp.
, . ,
, .
ftp.
-------------------------------------
ftp ASCII
. ASCII .
,
. UNIX
ASCII (
).
, ,
UNIX.
ftp.
-------------------------------------
, ftp,
(-), ftp ( )
( ).
, ftp,
(|),
. ftp
. ,
. :
"| ls -ls"
(|) .
5-3
ftp.
----------
ftp UNIX, ftp.
, .
:
ftp>
, ,
.
admin:
$ ftp admin
.
ftp ,
/etc/hosts.
ftp,
. ftp open
, .
ftp , :
$ ftp
ftp,
ftp. ftp open
.
" ftp "
.
ftp.
----------
ftp,
. ftp,
, . (-)
, : -v.
,
ftp.
ftp .
ftp " ftp ".
5-4
-v ftp .
ftp, ftp
. ,
.
, ftp
. ftp ,
, -v.
ftp
ftp verbose.
-d ftp .
ftp, ftp ,
.
, .
ftp,
ftp debug.
-i .
-n ftp ,
.
, ftp
.(
" .netrc
" .) -n
,
ftp user,
.
-g UNIX ,
(*).
, ftp
.
ftp glob.
ftp :
$ ftp -v -d admin
ftp
ftp
admin. , ,
.
.
5-5
$ ftp -v -d
ftp
, .
$ ftp -n -g admin
ftp c
,
admin.
$ ftp -n -d
ftp
, - .
.netrc .
----------------------------------------------------------
.netrc
.
- ,
. netrc(F)
. ftp, ,
.. , ftp
.netrc. - , ftp
.
,
. ,
.
,
:
machine login password
machine,login,password ,
, :
machine .
login .
password .(
).
.netrc, / ,
,
.
5-6
ftp
.
400 600 .netrc ,
.
chmod(C).(
.
.)
.
, ftp .
:
machine admin login guido password open
: admin - , guido - ,
admin, open - guido.
ftp .
---------------------------
,
ftp TCP/IP ,
ftp.
, UNIX UNIX .
, ,
.
, UNIX,
ftp -
. ftp .
ftp .
ftp remotehelp
.
ftp.
--------------------
ftp,
, .
ftp.
.
Return.
Return.
,
erase(BKSP)
kill(Cancel).
5-7
,
, .
ftp.
, ,
ftp. ftp
ftp(TC).
! ftp
(shell) . () ()
shell . ftp,
shell. ftp
,
. shell
, !,
. ftp
.
append append ftp
,
.
, ,
:
ftp> append
ftp, , :
ftp> append
(local-file)
(remote-file)
,
UNIX UNIX .
ascii ftp ASCII
. ( ASCII).
bell ,
.
,
ftp.
5-8
binary ftp .
bye ftp.
.
cd
. ,
, :
ftp > cd /usr/bin
ftp, ,
:
ftp> cd
(remote-directory) /usr/bin
close .
debug .
,
, .
delete ,
.
, , ftp :
ftp> delete
,
ftp.
, :
ftp> delete
(remote-file)
dir
, .(
ls, ).
5-9
,
, ftp. :
ftp> dir /usr/bin
,
.
ftp
.
:
ftp> dir /usr/bin printfile
( printfile). ,
,
printfile, :
ftp> dir . printfile
"." .
form ,
. .
get ,
.
( mget
).
,
, .
:
ftp> get
,
,
. :
ftp> get
5-10
ftp get.
ftp ,:
ftp> get
(remote-file)
(local-file)
glob ftp
UNIX, , '* '.
, ,
. ftp
.
hash ftp '# '
,
.
. ,
, ftp
.
'#' .
help ftp.
help ,
. help,
ftp.
lcd , ftp,
. ,
, :
ftp> lcd /ysr/deb
,
.
ls
, .
.
5-11
,
. :
ftp> ls /usr/bin
,
.
,
.
ftp,
, :
ftp> ls /usr/bin printfile
(
printfile). ,
printfile:
ftp> ls . printfile
"." , ,
.
mdelete ,
.
. :
ftp> mdelete 1 2...
. ftp ():
ftp> mdelete
(remote-files) 1 2...
mdir
.
,
. :
ftp> mdir 1 ... printfile
5-12
(,
printfile).
.
ftp , :
ftp> mdir
(remote-files) 1 ...printfile
local-file printfile?y
mget
,
.
. :
ftp> mget 1 2...
,
ftp :
ftp> mget
(remote-files) 1 2 ...
mkdir ,
.
, :
ftp> mkdir /u/mydir
, ftp , :
ftp> mkdir
(directory-name)
.
mls
.
5-13
, ,
:
ftp> mls 1 ...printfile
,
:
ftp> mls
(remote-files) 1 ...printfile
local-file printfile?y
mput
, .
.
,:
ftp> mput 1 2 ...
, ftp
:
ftp> mput
(local-files) 1 2...
nmap
.
UNIX
.
get mget ,
put mput .
mput .
ftp(TC).
ntrans
.
UNIX ,
.
get mget ,
put mput . mtrans .
ftp(TC).
5-14
open ,
.
, :
ftp> open admin
, :
ftp> open
(to)
,
.
, ftp ,
, .
,
.
, .
prompt ftp
,
mget.
.
put
, .(
mput).
ftp,:
ftp> put
ftp> put
5-15
(),
, :
ftp> put
(local-file)
(remote-file)
,
put ,
.
pwd ftp
,
.
quit bye, .
quote ftp ,
,
. ftp .
, ftp ,
remotehelp.
ftp, :
ftp> quote NLST
, ftp
, , :
ftp> quote
(command-line to send) NLST
.
recv get, .
remotehelp ftp ,
.
.
rename ,
.
5-16
,
:
ftp> rename 1 2
, :
ftp> rename
(from-name) 1
(to-name) 2
mdir ,
.
, , ,
:
ftp> rmdir /u/mydir
,
:
ftp> rmdir
(directory-name) /u/mydir
.
send put, .
sendport ftp
.
. ftp
.
.
status ftp
. ,
bell,form,hash,glob,port,type.
5-17
type .
ASCII .
ascii binary.
, ASCII.
trace ftp .
.
.
user
. -
-n ftp.
.( "
.netrc "
). ,
.
: , .
,
.
. ,
, .
user,
:
ftp> user mike cat myaccount
. , :
5-18
ftp> user
(usename) mike( )
password:
Account: myaccount( )
,
.
, .
verbose ftp .
.
ftp ,
.
,
. ,
.
? help.
ftp.
-------------------
ftp.
. ,
HERE THERE.
1 .
-------------------
ftp
. ftp
, ..
-n.
verbose.
/etc . .. -d verbose,
, ftp,
.
, ls,
/etc THERE. ftp
/etc. get passwd passwd
THERE HERE. passwd
HERE, .
5-19
put , wall
(HERE)
(THERE) /etc. ,
.. . ,
/etc, , wall,
HERE.
bye,
HERE.
+------------------------------------------------------------------+
| $ ftp THERE |
| Connected to THERE |
| 220 THERE FTP server (Version 4.160 #1) ready |
| Name (THERE:stevea): |
| Password (THERE:stevea): |
| 331 Password required for stevea. |
| 230 User stevea logged in. |
| ftp> verbose |
| Verbose mode off. |
| ftp> cd /etc |
| ftp> ls |
| passwd |
| volcopy |
| whodo |
| ftp> get paswd |
| ftp>put wall |
| ftp> ls |
| passwd |
| volcopy |
| wall |
| whodo |
| ftp> bye |
| $ |
+------------------------------------------------------------------+
2 .
-------------------
,
, ftp. ftp c
, ,
. ftp
, .
/etc. .. ,
(--> CWD/etc) , (250 CWD
command successful - ). , cd
, ,
UNIX, CDW (
). ftp
cd, .
5-20
cd pwd ,
. ftp
,
() ,
. hash
, , .
get wall myfile ftp wall
myfile
. ftp ,
hash
, .
, ,
, .
close
ftp bye.
+------------------------------------------------------------------+
| $ ftp THERE |
| Connected to THERE |
| 220 THERE FTP server (Version 4.160 #1) ready |
| Name (THERE:stevea): |
| Password (THERE:stevea): |
| 331 Password required for stevea. |
| ftp> debug |
| Debugging on (debug = 1) |
| ftp> cd /etc |
| ---> CDW /etc |
| 200 CDW command okay. |
| ftp> pwd |
| ---> PWD |
| 251 |
| ftp> hash |
| Hash mark printing on (1024 bytes/hash mark). |
| ftp> get wall mefile |
| ---> PORT 3,20,0,2,4,51 |
| 200 PORT command okay. |
| ---> RETR wall |
| 150 Opening data connection for wall (3.20.0.2.1075)(24384bytes)|
| #######################. |
| 226 Transfer complete. |
| 24550 bytes received in 12.00 seconds (2 Kbytes/s) |
| ftp> close |
| ---> QUIT |
| 221 Goodbye. |
| ftp> bye |
| $ |
+------------------------------------------------------------------+
5-21
rcp.
____________________________________________________________________
, UNIX
- rcp.
ftp, UNIX cp.
,
UNIX UNIX.
rcp.
----------
rcp UNIX.
. , rcp
cp.
.
remotefile c admit
localfile ( ).
UNIX.
,
. :
- user@machine:filename
- machine:filename
- filename
:
machine ,
. ,
.
user , .
,
.
,
.
.
5-22
filename UNIX,
. ,
(/),
.
,
,
.
, rcp ,
(), () , ()
.
rcp.
----------
:
-r .
-r, .
, rcp
.
,
.
-p
- ,
umask. -p,
. ,
umask.
5-23
.
--------
THERE-C THERE-C1.
list
THERE-C:
$ rcp list THERE-C:list
c /net/src
src
THERE-C:
$ rcp -r /net/src THERE-C:src
list
mike THERE-C
/usr/tmp THERE-C1. THERE-C1
deb.
$ rcp mike@THERE-C:list deb@THERE-C1:/usr/tmp
6.
.
____________________________________________________________________
6-1
6-3
TSP 6-4
6-4
6-5
- 6-5
6-6
6-6
6-7
6-7
6-8
, 6-8
6-9
6-9
6-10
6-10
6-11
6-11
, 6-12
6-12
6-13
6-13
6-14
6-14
6-15
6-1
.
____________________________________________________________________
(TSP)
timed(ADMN).
UNIX
,
TCP/IP. timed DAPRA UDP
"-".
TSP . -
.
- ,
" " ( -
, ,
), - .
, ,
,
( ) -.
20 ,
. ,
1. -
, .
ICMP ( )
.
,
. ,
,
,
. -
.
.
, .
,
-.
. ,
.
- .
- ,
. ,
, .
,
, ,
. ,
(,
) .
6-2
;
. ,
.
TSP .
.
, ,
.
, ,
, .
,
.
TSP ;
.
.
,
.
____________________________________________________________________
timed .
____________________________________________________________________
6-3
.
____________________________________________________________________
.
. TSP :
1. .
2. , ,
.
3. ,
.
4. .
.
5. , 256 ASCII
, .
6-4
TSP.
____________________________________________________________________
,
.
- ,
.
.
.
--------------------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| |
+------------------------------------------------------------------|
| |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_ADJTIME(1)
,
,
. .
.
6-5
.
------------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| ( ) |
+------------------------------------------------------------------|
| ( ) |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_ACK (2)
. .
, .
- .
-------------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| ( ) |
+------------------------------------------------------------------|
| ( ) |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_MASTERREQ (3)
. .
.
6-6
- .
----------------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| ( ) |
+------------------------------------------------------------------|
| ( ) |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_MASTERACK (4)
,
.
.
----------------------------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| |
+------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_SETTIME (5)
.
. .
-.
.
6-7
.
-----------------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| ( ) |
+------------------------------------------------------------------|
| ( ) |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_MASTERUP (6)
.
.
.
----------------------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| ( ) |
+------------------------------------------------------------------|
| ( ) |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_SLAVEUP (7)
,
. ,
.
6-8
.
--------------------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| ( ) |
+------------------------------------------------------------------|
| ( ) |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_ELECTION (8)
, ,
, .
, .
, .
----------------------------------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| ( ) |
+------------------------------------------------------------------|
| ( ) |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_ACCEPT (9)
,
, .
.
6-9
.
-----------------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| ( ) |
+------------------------------------------------------------------|
| ( ) |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_REFUSE (10)
,
, .
.
-------------------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| ( ) |
+------------------------------------------------------------------|
| ( ) |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_CONFLICT (11)
,
.
6-10
.
----------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| ( ) |
+------------------------------------------------------------------|
| ( ) |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_RESOLVE (12)
, ,
, .
.
-------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| ( ) |
+------------------------------------------------------------------|
| ( ) |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_QUIT (13)
:
- ,
- ,
- ,
.
.
6-11
.
----------------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| |
+------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_SETDATE (22)
date(1) ,
.
, . - ,
.
.
--------------------------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| |
+------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_SETDATEREQ (23)
,
.
6-12
.
----------------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| ( ) |
+------------------------------------------------------------------|
| ( ) |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_DATEACK (16)
.
rdate(ADMN) , .
.
-------------------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| ( ) |
+------------------------------------------------------------------|
| ( ) |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_TRACEON (17)
timedc
,
.
6-13
.
------------------------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| ( ) |
+------------------------------------------------------------------|
| ( ) |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_TRACEOFF (18)
timedc
.
.
-----------------------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| ( ) |
+------------------------------------------------------------------|
| ( ) |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_MSITE (19)
timedc
.
6-14
.
----------------------------------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| ( ) |
+------------------------------------------------------------------|
| ( ) |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_MSITEREQ (20)
.
timedc.
.
----------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| ( ) |
+------------------------------------------------------------------|
| ( ) |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_TEST (21)
timedc .
.
6-15
.
-------------------------------
1 | 2 | 3 | 4
+===============================================================+
| | | |
|----------------+----------------+--------------------------------+
| ( ) |
+------------------------------------------------------------------|
| ( ) |
|------------------------------------------------------------------+
| |
|------------------------------------------------------------------+
| ... |
+------------------------------------------------------------------+
: TSP_LOOP (24)
,
. ,
. , ,
, .
Last-modified: Fri, 27 Mar 1998 06:30:00 GMT