2016/03/08

FreeBSD/i386のFTPクライアントでファイルを転送

FreeBSD/i386上のFTPクライアントを用いてOpenVMS alphaにファイルを転送しようとする場合には、TCP/IP Services for OpenVMSでFTPサーバ機能を有効にする必要があります。
furusawa% ftp -N /dev/null 192.168.1.161
Connected to 192.168.1.161.
220 192.168.1.161 FTP Server (Version 5.0) Ready.
Name (pws500ov:furusawa):
331 Username furusawa requires a Password
Password:
230 User logged in.
Remote system type is VMS.
ftp> asc
200 TYPE set to ASCII.
ftp> put a.c
local: a.c remote: a.c
227 Entering Passive Mode (192,168,1,161,4,4)
150 Opening data connection for DISK$USER:[FURUSAWA]a.c; (192.168.1.221,28115)
100% |***********************************|    90      201.12 KiB/s    --:-- ETA
226 Transfer complete.
90 bytes sent in 00:00 (0.88 KiB/s)
ftp> bye
221 Goodbye.
FTPで転送したファイルはOpenVMSのFTPサーバがディスク上にファイルとして書き込むので、OpenVMS上のエディタでファイルを作成したものと同じファイル属性を持つことになります。
 $ dir/ful a.c;1,;3

Directory DISK$USER:[FURUSAWA]

A.C;1                         File ID:  (3050,6,0)
Size:            1/4          Owner:    [FURUSAWA]
Created:   15-OCT-2015 10:02:50.88
Revised:   15-OCT-2015 10:02:50.95 (1)
Expires:   <None specified>
Backup:    <No backup recorded>
Effective: <None specified>
Recording: <None specified>
File organization:  Sequential
Shelved state:      Online
Caching attribute:  Writethrough
File attributes:    Allocation: 4, Extend: 0, Global buffer count: 0
                    No version limit
Record format:      Variable length, maximum 0 bytes, longest 31 bytes
Record attributes:  Carriage return carriage control
RMS attributes:     None
Journaling enabled: None
File protection:    System:RWED, Owner:RWED, Group:RE, World:
Access Cntrl List:  None
Client attributes:  None

A.C;3                         File ID:  (3757,11057,0)
Size:            1/4          Owner:    [FURUSAWA]
Created:    8-MAR-2016 10:12:49.89
Revised:    8-MAR-2016 10:12:49.96 (1)
Expires:   <None specified>
Backup:    <No backup recorded>
Effective: <None specified>
Recording: <None specified>
File organization:  Sequential
Shelved state:      Online
Caching attribute:  Writethrough
File attributes:    Allocation: 4, Extend: 0, Global buffer count: 0
                    No version limit
Record format:      Variable length, maximum 0 bytes, longest 31 bytes
Record attributes:  Carriage return carriage control
RMS attributes:     None
Journaling enabled: None
File protection:    System:RWED, Owner:RWED, Group:RE, World:
Access Cntrl List:  None
Client attributes:  None

Total of 2 files, 2/8 blocks.

0 件のコメント:

コメントを投稿