HP ARPA File Transfer Protocol User's Guide (36957-90159)

76 AppendixA
MPE/iX and POSIX Differences
Working With Directories
:chdir /SYS/WORK
CWD is “/SYS/WORK”.
:SHOWME
USER: #S36,MANAGER.SYS,WORK (NOT IN BREAK)
:showvar hpcwd
HPCWD = /SYS/WORK
FTP Usage Examples
Example 1:
This is a sample of the operation of the POSIX current working directory “cwd” and the
resulting file domain on the local system. In this example, the user on the local system,
logged on as “MANAGER.SYS,PUB”, enters FTP and then executes a “:CHDIR /SYS/WORK
command. The result is the local domain for files, FTP view will be “/SYS/WORK/” (POSIX
syntax) or “WORK.SYS” (MPE syntax).
:ftp.arpa.sys
File Transfer Protocol [A0006018] (C) Hewlett-Packard Co. 1990
ftp> :showvar HPCWD
HPCWD = /SYS/PUB
ftp> :showme
USER: #S27,MANAGER.SYS,PUB (NOT IN BREAK)
ftp> :chdir /SYS/WORK
CWD is “/SYS/WORK”.
ftp> :showvar HPCWD
HPCWD = /SYS/WORK
ftp> :showme
USER: #S27,MANAGER.SYS,PUB (IN PROGRAM)
Example 2:
This is a sample of the operation of the POSIX current working directory “cwd” and the
resulting file domain on the remote system. In this example, the user connects to the
remote system with FTP, logged on as “MANAGER.SYS,PUB” and then executes a FTP “cd
/SYS/WORK” command. The result is the remote domain for files FTP will view will be
/SYS/WORK” (POSIX syntax) or “WORK.SYS” (MPE syntax).
ftp> pwd
257-“/SYS/PUB” is the current directory.
257 “,MANAGER.SYS,PUB” is the current session.
ftp> cd /SYS/WORK
250 CWD file action successful.
ftp> pwd
257-“/SYS/WORK” is the current directory.
257 “,MANAGER.SYS,PUB” is the current session.