VMS Help
TCPIP Services, FTP, Command Procedures
*Conan The Librarian (sorry for the slow response - running on an old VAX)
|
|
You can use either OpenVMS or UNIX command syntax in DCL command
procedures that use FTP. You can use command procedures to invoke
FTP tasks, connecting to a remote host and performing assorted
file operations with the remote host and you can use command
procedures to customize the FTP environment.
1 - Initialization Command Files
|
Initialization command files can customize your FTP sessions
with SET, ENABLE, and DISABLE commands. These command files
are optional. They eliminate the need to enter individual FTP
commands, and run automatically when you invoke FTP.
Initialization command files:
o Contain only VMS commands
o Contain only one command per line
o Generally named SYS$LOGIN:FTPINIT.INI
The following example shows an FTP initialization command procedure.
! This file, FTPINIT.INI, sets my FTP parameters
! the way I like them.
!
ENABLE REPLY
ENABLE TRANSFER_VERIFICATION
SET DEFAULT/LOCAL [MILLER.WORK]
When you invoke FTP, the initialization file generates output
such as the following, which displays environmental status:
$ FTP
Reply on.
Verbose mode on.
Bell off.
Hash mark printing on (1024/hash mark).
Local directory now SYS$LOGIN_DEVICE:[MILLER.WORK]
To change the error level, you enter the following command where
x is SUCCESS, WARNING, or ERROR:
FTP> SET ERROR_LEVEL x
o If ERROR LEVEL is SUCCESS, then WARNING, ERROR, and FATAL will
exit FTP.
o If ERROR LEVEL is WARNING, then ERROR and FATAL will exit FTP.
o If ERROR LEVEL is ERROR, then only FATAL will exit FTP.
FATAL errors will always cause FTP to exit.
[legal]
[privacy]
[GNU]
[policy]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.