lftp >open -u ユーザー名 サーバー >close >history -c >exit
文字コードがシフトJISである場合、 openのときに-e "set ftp:charset Shift-JIS"をつける。