|
HP OpenVMS systems documentation |
Previous | Contents | Index |
Suspends the current FTP session, creates a subprocess, and runs the DCL command that you type. Use the LOGOUT command to end the subprocess and return to the FTP prompt.
SPAWN [ command ]
! [ command ]
#1 |
---|
FTP> SPAWN SHOW DEFAULT SYS$LOGIN_DEVICE:[PERCY.DISTR] |
Interrupts the FTP process to display your default directory.
#2 |
---|
FTP> ! SHOW DEFAULT WORK1$:[VANA.FTP] FTP> |
You can also use the exclamation point (!) to spawn a command.
For more examples, see Section 2.12.
Displays the contents of a file on your current output device.
VIEW [ /PAGE ] filespec
view filespec
filespec
Required.Specifies the file to be displayed. Wildcard characters (*, %) are not allowed in place of the directory name, file name, file type, or file version number.
/PAGE
Optional.Displays one screen at a time until the end of file (EOF) is reached. You can terminate the display at any time by pressing Ctrl/Z.
#1 |
---|
FTP> VIEW FUNDING.TXT |
Scrolls through the contents of the FUNDING.TXT file in the current working directory, and displays the contents on the current output device.
#2 |
---|
FTP> VIEW/PAGE FUNDING.TXT |
Displays the contents of the FUNDING.TXT file, one screen at a time, on the current output device.
The Remote (R) commands provided by TCP/IP Services allow you to work in user accounts on remote systems that support the Remote (R) protocols. You can also use commands, shell scripts, and command procedures on these remote host systems without logging in to the hosts. The R commands include RCP (Remote Copy), RLOGIN (Remote Login), RSH (Remote Shell), and REXEC (Remote Execute, invoked by RSH). You enter these commands at your system command-line prompt.
To use Secure Shell (SSH) authentication and encryption for remote login, remote command execution, and copying files, refer to the HP TCP/IP Services for OpenVMS Guide to SSH.
To use the Remote (R) commands, you need access to a user account on the remote host. Access is granted by either of the following:
Table 3-1 summarizes the Remote (R) commands. (For complete command descriptions, see Section 3.8.)
Command | Description |
---|---|
RCP | Copies files between the local host and a remote host or between two remote hosts. Authentication is performed on the remote host or hosts using the user name supplied by RCP or by authentication or proxy files. |
RLOGIN | Connects to the remote host, which starts an interactive login session. Authentication is performed on the remote host using the user name supplied by RLOGIN. |
RSH | Connects to the remote host, which executes the command you specified. Authentication is performed on the remote host using the user name supplied to RSH. |
RSH/PASSWORD | Uses the REXEC facility to connect to the remote host, which executes the command you specify. Authentication is performed on the remote host using the user name and password supplied by RSH. |
To use a remote command on your OpenVMS system, remote hosts need to know the user name that you want to use on the host. You can provide the user name in either of two ways:
The remote host must also know your password or know you as a trusted user on your local system through a proxy or by authentication.
$ RSH WOODS /PASSWORD="Downy" LS |
$ RSH WOODS /PASSWORD DIR REXEC password: (password not echoed) |
|
Use quotation marks (" ") for UNIX host path names that include slashes (/), such as user/simms/offers , and for user/host specifications that include the username@hostname syntax.
If the remote host uses case-sensitive user names and passwords, use quotation marks in the following situations:
The following examples show how to provide account and password information for the R commands.
$ RCP UFEMISM:ACCNTS [] $ |
$ RLOGIN /USER_NAME=CRIS UFEMISM Welcome to UNIX system ufemism. . . . ufemism% |
$ RSH /NOLOWERCASE UFEMISM CAT -N GRANTS |
$ RSH /PASSWORD="MagNificat" CLASSICS LS |
You can specify R command qualifiers in either of two ways:
$ RCP /LOG TRANQUIL:VULTURES [] $ RSH /EIGHTBIT /ESCAPE_CHAR="+" /TRUNCATE HERON CAT -N STREAMS |
$ ! To customize my R commands: $ ! $ RCP :== RCP /LOG $ RLOGIN :== RLOGIN /EIGHTBIT/ESCAPE_CHAR="+" /TRUNCATE_USER_NAME $ RSH :== RSH /EIGHTBIT /ESCAPE_CHAR="+" /TRUNCATE_USER_NAME $ ! |
You can obtain online help for the Remote commands by entering the following command:
$ HELP TCPIP_SERVICES REMOTE_COMMANDS |
You can also obtain information for a specific R command by entering one of the following commands:
$ HELP RCP $ HELP RLOGIN $ HELP RSH $ HELP REXEC |
The RCP (Remote Copy) command copies a file between your local host and a remote internet host. You can also use RCP to copy a file between two remote internet hosts. You specify the source and destination file names, each in the format appropriate for the source or destination system. For copying files from one remote host to another, the following rules apply:
By using the /RECURSIVE qualifier with the RCP command, you can recursively copy every file and subdirectory in a directory.
You can also use the COPY/RCP command to copy files across the network. For more information on this command, enter HELP COPY/RCP at the DCL prompt.
Note that you can also use FTP to transfer files. To determine the best
file transfer service to use for your needs, see Section 1.1.1. For
more information about FTP, see Chapter 2.
3.4.1 Example RCP Commands
The following examples show how to use RCP commands to copy files from one host to another host:
$ RCP /PASSWORD="IMusici" "haven:/symph/nine" |
$ RCP "musicx:/symph/pastoral" ":DKA300:[SYMPH6]" |
$ RCP/RECURSIVE "haven:/symph" ":DKA300:[SYMPHS]" |
$ RCP /PASSWORD="IMusici" "musicx:/symphonies/*" "haven:/symph/*" |
$ COPY/RCP haven"BEST IMusici"::"/symph/*" To: FRAM"VAUGHN MYLES"::[classic.compositions]*" |
The RLOGIN (Remote Login) command connects your terminal to the remote host you specify and requests a login. If the remote host has an entry in its authentication files for your host and user name, it may bypass its login and password prompts. (See Section 3.1.)
Note that you can also use TELNET to log in to remote internet hosts.
To determine the best remote login service to use for your needs, see
Section 1.1.2. For more information about TELNET, see Chapter 4.
3.5.1 Logging Out
End your remote login session in one of the following ways:
The default escape character is a tilde ( ~ ). To set another escape
character, use the /ESCAPE_CHARACTER qualifier on the RLOGIN command
line.
3.5.2 Example RLOGIN Sessions
The following examples show how to use the RLOGIN command.
$ RLOGIN CONDO CONDO - Unauthorized access is prohibited Username: KING Password: (password not echoed) Welcome to OpenVMS (TM) Alpha Operating System, Version V7.3 on node CONDO Last interactive login on Thursday, 24-SEP-2001 15:20:29.60 Last non-interactive login on Wednesday, 23-SEP-2001 14:25:04.12 $ RUN ... $ ~. (characters not echoed) %RLOGIN-S-LCLCLOSED, Local connection closed $ |
$ RLOGIN /ESCAPE_CHARACTER="+" PETREL . . . Last login: Mon Mar 14 18:34:27 from phoebe.edu UNIX System petrel: Fri Mar 19 11:02:20 EST 2002 Mon Jun 28 18:44:42 EST 2002 % ls ... % +. (characters not echoed) %RLOGIN-S-REMCLOSED, Remote connection closed $ |
The RSH (Remote Shell) command connects your terminal to a remote host and requests it to execute the command, script, or command procedure that you specify. If the command generates output, you see it as if it were produced locally. If you omit a remote command when you enter an RSH command line, RSH initiates an RLOGIN session. However, if the command line includes the /PASSWORD qualifier, the remote login attempt fails. Using the /PASSWORD qualifier invokes REXEC. (See Section 3.7.)
Syntax rules require that you enter your RSH command line so that the
remote command is the last word.
3.6.1 Quotation Marks in Commands
If the remote command is one or more lowercase words, you do not need to enclose them in double quotation marks on the RSH command line. However, double quotation marks ( " " ) are required for the following:
In addition, RSH handles one double quotation mark ( " ) and two consecutive double quotation marks ( " " ) in the following manner:
Note that, as a general rule, if you are uncertain about whether or not
to use quotation marks, you should use them.
3.6.2 Interrupting a Command's Execution
To stop remote execution of a command, press either Ctrl/C or Ctrl/Y.
3.6.3 Example RSH Commands
The following examples show how to use the RSH command.
$ RSH /USER_NAME=ROLLY OSTER LS |
$ RSH DEBTS LS "-R" |
$ RSH DEBTS ECHO TEST MESSAGE test message $ RSH DEBTS ECHO "\""test\"" message" "test" message RSH DEBTS ECHO "TEST" MESSAGE TEST message $ RSH DEBTS "echo '""test"" message'" "test" message |
$ RSH MOON01 Password: [Return](password not echoed) Last successful login for jjones: Fri Sep 25 10:58:31 2003 from nebula Last unsuccessful login for jjones: Fri Sep 25 11:59:43 2003 on ttyp5 Tru64 UNIX V5.0 (Rev. 148); Tue Apr 7 18:32:54 EST 2003 Compaq Computer Corporation Internal Use Only moon01> |
$ RSH WR2 DIRECTORY |
$ RSH WR2 /USER=ROGERS DIRECTORY |
Previous | Next | Contents | Index |