HP ARPA File Transfer Protocol User's Guide (36957-90159)
82 AppendixA
MPE/iX and POSIX Differences
Transferring Files
only the filename (not the full path) needs to be specified.
Example 1:
This example demonstrates a FTP data transfer from a file in a MPE group to a POSIX
directory.
:listf testdata,2
ACCOUNT = SYS GROUP= WORK
FILENAME CODE --------LOGICAL RECORD-------- ----SPACE----
SIZE TYP EOF LIMIT R/B SECTORS #X MX
TESTDATA 80B FA 13820 13820 16 4304 1 *
ftp> pwd
257-“/SYS/WORK” is the current directory.
257 “,MANAGER.SYS,WORK” is the current session.
ftp> mkdir temp
257 MKD successful, “temp” created.
ftp> cd temp
250 CWD file action successful.
ftp> pwd
257-“/SYS/WORK/temp” is the current directory.
257 “,MANAGER.SYS,WORK” is the current session.
ftp> put testdata
200 PORT command ok.
150 File: testdata;REC=-80,16,F,ASCII;DISC=13820,8 opened; data connection
will be opened
226 Transfer complete.
1133496 bytes sent in 1.25 seconds (885.54 Kbytes/sec)
ftp> dir
200 PORT command ok.
150 File: LISTFILE ./@,2 opened; data connection will be opened
PATH= /SYS/PUB/
CODE --------LOGICAL RECORD-------- ----SPACE---- FILENAME
SIZE TYP EOF LIMIT R/B SECTORS #X MX
80B BA 13820 13820 16 4320 17 8 TESTDATA
226 Transfer complete.
235 bytes received in 0.02 seconds (14.34 Kbytes/sec)
Example 2:
This example demonstrates a FTP data transfer from a file in a POSIX directory to a
POSIX directory. The sample file copied in the prior example will be copied back to the
local system in the POSIX directory /SYS/WORK/temp2.
ftp> :newdir /SYS/WORK/temp2
Created directory “/SYS/WORK/temp2”
ftp> :chdir /SYS/WORK/temp2
CWD is “/SYS/WORK/temp2”.