ftp - jedimatt42/fcmd GitHub Wiki

Syntax

ftp

Description

Opens an FTP (File Transfer Protocol) prompt on your TI-99/4A.

There is a help command inside the ftp prompt. It currently supports the following commands:

open - <hostname> [port] - connect to an ftp server, defaults to port 21
dir [pathname] - list directory
   alias: ls
pwd - show current server directory
cd <pathname> - change server directory location
get <filename> [tiname] - retrieve a file
bye - close connection
   aliases: exit, quit

Upon opening a connection, you will be prompted for a login name and password.

When using get, the server filename will be transformed into a 10 character TI name. Spaces will be changed to _ and periods . will be transformed to forward slash /

Files received will be saved to the current working directory in Force Command before you entered the ftp prompt.

Examples

Login to ftp.whtech.com and get a file

[1100.DSK1.]
$ ftp
ftp> open ftp.whtech.com
connected
220 ...
login: anonymous
331 Please specify a password
password: 
...
...
230 User anonymous logged in
ftp> cd TIPI
250 CWD command successful
ftp> dir WEATHE?
227 Entering Passive Mode (.....)
150 Opening ASCII mode data connection for file list
-rw-r--r--   1 ftp     ftp      8320 Oct 31  2018 WEATHER
-rw-r--r--   1 ftp     ftp       640 Oct 31  2018 WEATHES
226 Transfer Complete
ftp> get WEATHER
200 Type set to I
227 Entering Passive Mode (.....)
150 Opening BINARY mode data connection for WEATHER (8320 bytes)
found TIFILES header
.........................................
226 Transfer complete
ftp>
⚠️ **GitHub.com Fallback** ⚠️