UNIX/コマンド/クライアント/ftp


Table of Contents

% ftp
ftp> open
ftp> open [hostname]

% ftp [hostname]
ftp> user
ftp> bye
ftp> quit

% close
.netrc
machine [hostname or IPaddress]
login [username]
password [password]
macdef [macroname]
cd [hogehoge]
lcd [hogehoge]
get [hogehoge]

macdef [macroname]
cd [hogehoge]
lcd [hogehoge]
put [hogehoge]

machine [hostname or IPaddress]
login [username]
password [password]
 

% chmod 600 ~/.netrc

ftp> $[macroname]
open [hostname or IPaddress]
user [username] [password]
cd [hogehoge]
lcd [hogehoge]
get [hogehoge]
% ftp -n < [filename]

open [hostname or IPaddress]
$[macroname]
% ftp < [filename]

xrea