FTP subcommands for
establishing and exiting a connection.
ACCT
|
Specifies the account information required by the host. See
your foreign-host FTP server documentation for the information required by
that host.
Syntax: ACCT
account-info
|
OPEN
|
Use the Open subcommand to open a
connection to the remote host FTP server.
This could be used to connect to another server without leaving the ftp client env Or if we were unable to open a connection when you specified a foreign_host value with the FTP command.
Syntax:
.-21----------.
>>-Open--host_name--+-------------+----------------------------><
'-port_number-'
Note that we cannot connect to multiple servers at the same
time. The connection will be rejected.
Example:
ftp
--> Type ftp to get into ftp environment
ftp> open 199.145.85.37 --> Use open to make a connection
Connected to 199.145.85.37.
220-FTPSERVE IBM FTP CS V1R12 at MVSXX00.MVS.ABC.COM, 12:05:55
on 1453-03-11.
220 Connection will close if idle for more than 5 minutes.
Name (199.145.85.37:batch): M0001
331 Send password please.
Password:
230 M0001 is logged on.
Working directory is "M0001.".
Remote system type is MVS.
|
CLOSE
|
Used to disconnect from the
remote host, but not ftp . There are no sub parameters for this subcommand.
ftp> close
221 Quit command received. Goodbye.
|
USER
|
This is used to identify you to the
host after opening the connection OR can be used to change the user.
Ex: you login with your id and then decide to change the user to a batch user or a generic id for the ftp purpose.
Syntax:
>>-User--user_id--+--------------+-----------------------------><
'-| Password |-'
Password:
|--password--+----------------------------------+--------------->
'-/--new_password--/--new_password-'
user_id:
Specifies your logon name on the host.
Password:
Specifies your current password on the host. If you do not supply a password
when invoking the User subcommand, you are prompted to enter a password if
the host requires a logon password.
new_password / new_password: Specifies your new password on the host. You
must enter the password twice.
Example:
ftp> user M0003
331 Send password please.
Password:
< Enter the password and hit enter to change the userid to M0003>
|
PASs
|
Used to supply password
to the host.
>>-PAss--password--+------------------+--+-----------+---------->
'-/newpass/newpass-' '-:userdata-'
>--+---------------------+-------------------------------------><
'-account_information-'
Password: Specifies your password on the remote host.
/newpass/newpass: Resets a password.
|
QUIT
|
Use the QUIt subcommand to disconnect from
the foreign host and end the FTP session also.
|
No comments:
Post a Comment