ファイルの転送プログラム

---------------------------------------------------------------------------------

ホームディレクトリに、適宜のプログラム名で下記シェルスクリプトのプログラムを
書き込む。    ( httpd-2.4.20 インストールバージョンです。)

cd /home/miyasaka/;vi tensou.sh

以下をコピーし張り付ける。

#!/bin/sh
#      CentOS 6.8 32bit rpm package
#---------------------------------------------------------------
#ftp
cp /home/miyasaka/src2/ftp-0.17-54.el6.i686.rpm /usr/local/src/
#---------------------------------------------------------------
#RPMforgeリポジトリ
cp /home/miyasaka/src2/yum-plugin-priorities-1.1.37-14.el6.noarch.rpm\
 /usr/local/src/
cp /home/miyasaka/src2/rpmforge-release-0.5.3-1.el6.rf.i686.rpm  /usr/local/src/
#---------------------------------------------------------------
#httpd
cp /home/miyasaka/src2/httpd-2.4.20.tar.gz /usr/local/src/
cp /home/miyasaka/src2/pcre-devel-7.8-7.el6.i686.rpm /usr/local/src/
cp /home/miyasaka/src2/apr-1.5.2.tar.gz /usr/local/src/
cp /home/miyasaka/src2/apr-util-1.5.4.tar.gz /usr/local/src/
#---------------------------------------------------------------
#fswebcam
cp /home/miyasaka/src2/fswebcam-20140113.tar.gz /usr/local/src/
cp /home/miyasaka/src2/libXpm-3.5.10-2.el6.i686.rpm /usr/local/src/
cp /home/miyasaka/src2/libjpeg-turbo-devel-1.2.1-3.el6_5.i686.rpm /usr/local/src/
cp /home/miyasaka/src2/libXpm-devel-3.5.10-2.el6.i686.rpm /usr/local/src/
cp /home/miyasaka/src2/gd-2.0.35-11.el6.i686.rpm /usr/local/src/
cp /home/miyasaka/src2/gd-devel-2.0.35-11.el6.i686.rpm /usr/local/src/
#---------------------------------------------------------------
#sendmail
cp /home/miyasaka/src2/sendmail-8.14.4-9.el6.i686.rpm /usr/local/src/
cp /home/miyasaka/src2/hesiod-3.1.0-19.el6.i686.rpm /usr/local/src/
cp /home/miyasaka/src2/procmail-3.22-25.1.el6_5.1.i686.rpm /usr/local/src/
#---------------------------------------------------------------
#logwatch
cp /home/miyasaka/src2/logwatch-7.3.6-54.el6.noarch.rpm /usr/local/src/
cp /home/miyasaka/src2/perl-Date-Manip-6.24-1.el6.noarch.rpm /usr/local/src/
cp /home/miyasaka/src2/perl-YAML-Syck-1.07-4.el6.i686.rpm /usr/local/src/
#---------------------------------------------------------------
#clamd 0.98.7
cp /home/miyasaka/src2/clamav-0.98.7-1.el6.i686.rpm /usr/local/src/
cp /home/miyasaka/src2/clamav-db-0.98.7-1.el6.i686.rpm /usr/local/src/
cp /home/miyasaka/src2/clamd-0.98.7-1.el6.i686.rpm /usr/local/src/
#---------------------------------------------------------------
#chkrootkit
cp /home/miyasaka/src2/chkrootkit.tar.gz /usr/local/src/
cp /home/miyasaka/src2/pcre-devel-7.8-6.el6.i686.rpm /usr/local/src/
mv /home/miyasaka/src2/chkrootkit-0.49-1.el6.rf.i686.rpm /usr/local/src/
#---------------------------------------------------------------
#sensors
cp /home/miyasaka/src2/lm_sensors-libs-3.1.1-17.el6.i686.rpm /usr/local/src/
cp /home/miyasaka/src2/lm_sensors-3.1.1-17.el6.i686.rpm /usr/local/src/
#---------------------------------------------------------------
cp /home/miyasaka/src2/lsof-4.82-4.el6.i686.rpm /usr/local/src/
cp /home/miyasaka/src2/diced01914.tar.gz /usr/local/src/
cp /home/miyasaka/src2/webalizer-2.23-08-src.tgz /usr/local/src/
cp /home/miyasaka/src2/webmin-1.560-1.noarch.rpm /usr/local/src/
#---------------------------------------------------------------
# kanji-code
cp /home/miyasaka/src2/Jcode-2.07.tar.gz /usr/local/src/
cp /home/miyasaka/src2/nkf-2.1.3.tar.gz /usr/local/src/
#---------------------------------------------------------------
echo "           *** 転送完了 ***"

tensou.shに実行権限を与える。
chmod 755 /home/miyasaka/tensou.sh
転送を実行する。
sh tensou.sh