|
|
HP ARPA File Transfer Protocol User's Guide: HP 3000 MPE/iX Computer Systems > Appendix A MPE/iX and POSIX DifferencesWorking With Directories |
|
When a user logs on as USER.ACCT,GROUP, the current working directory is initialized to /ACCT/GROUP. If a user creates a hierarchical directory through the FTP/iX MKDIR DIR1 command and then changes to that directory with the FTP/iX CD command, the new working directory will be /ACCT/GROUP/DIR1. The current working directory can be identified with the FTP/iX command PWD. To change directories on the local system, use the FTP/iX LCD command. The LCD command will automatically preface (./) to the given name if it does not start with a dot or a slash. This command identifies the new current directory. To remove directories, use the FTP/iX rmdir command. The (./) is prefaced to the given file name if it does not start with a dot or a slash. The rmdir will not work on MPE/iX groups or accounts. Likewise, mkdir creates new directories, not groups or accounts. Note that (.) refers to the current directory, (..) refers to the directory above the current directory, and (/) is used as the separator in the path name. Thus if a file name starts with (.) or (..), the path traversed to find the file is relative to the current directory, whereas if a file name starts with (/), the path is independent of the current directory and refers to the absolute path name. To change to a different directory outside of the FTP/iX subsystem in the POSIX name space, use the CHDIR command. Changes the process's current working directory (CWD) on the local system. Syntax CHDIR [ [DIR=]dir_name] [;SHOW | NOSHOW] Parameters
Switches you from the current group to another group within the logon account to which you are allowed access (NM capability required). This command is not executable through the FTP command prompt. Syntax CHGROUP [ [GROUP=]groupname] [/grouppass] Parameters
Refer to the MPE/iX Commands Reference Manual for command syntax and usage. Example A-3 Example 1:
Example A-6 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).
Example A-7 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).
|
|