2015-06-11から1日間の記事一覧

FTP コマンドの制御

FTP コマンドは以下のように存在する。http://www.iana.org/assignments/ftp-commands-extensions/ftp-commands-extensions.xhtml http://ja.wikipedia.org/wiki/FTP%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%81%AE%E4%B8%80%E8%A6%A7 実行できるコマンドは…

mail コマンドをワンライナーで実行

echo "xxxxx" | mail -s "xxxxx" root@localhost ^^^^^★本文 ^^^^^★件名

繰り返しコマンドを実行

echo test を繰り返し実行する。 出力先は、標準出力と、hoge.log となる。 # while true; do echo test |tee -a hoge.log; done;10 秒間隔にする場合は以下となる。 # while true; do echo test |tee -a hoge.log; sleep 10; done;