サンプルプログラムの転送・実行(ftp編)

該当製品: Armadillo-300 Armadillo-9 Armadillo-240 Armadillo-230 Armadillo-220 Armadillo-210 Armadillo-J Armadillo
| 最終更新: 2009/01/23

Armadilloでftpサーバが起動している場合、作成したプログラムをftp転送することができます。以下の例は、Armadillo-230でIPアドレスが「192.168.10.21」の場合です。

1. ftpによる接続、転送

デフォルトの状態でのユーザ名とパスワードは、製品により異なります。

製品名ユーザ名パスワード
Armadillo
anonymous
ftp
無し
無し
Armadillo-Jguestguest
Armadillo-9ftp無し
Armadillo-2x0ftp無し
Armadillo300ftp無し

[PC ~/sample]$ ftp 192.168.10.21
Connected to 192.168.10.21.
220 localhost FTP server (GNU inetutils 1.4.1) ready.
Name (192.168.10.21:sample): ftp
331 Guest login ok, type your name as password.
Password:
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bin
200 Type set to I.
ftp> cd pub
250 CWD command successful.
ftp> put sample
local: sample remote: sample
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'sample'.
226 Transfer complete.
9491 bytes sent in 0.00 secs (149492.8 kB/s)
ftp> bye

2. sampleの実行

プログラム転送の完了後、Armadillo上から実行します。


 [armadillo ~]$ cd /home/ftp/pub
 [armadillo ~]$ chmod a+x sample
 [armadillo ~]$ ./sample

 Hello, World!
 [armadillo ~]$
コンテンツの配信