シェルスクリプト:FTPのダウンロードを自動化
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[シェルスクリプト]]
*説明 [#kb40900c]
wgetコマンドにて、FTPセッションを使用して、ファイルのダウ...
*スクリプト [#fd1622cc]
#!/bin/bash
echo -n "FTP Server Name:"
read FTPSVRNAME
if [ ! -n "${FTPSVRNAME}" ];then echo "Plase Type FTP Se...
echo -n "FTP User Name:"
read FTPUSRNAME
if [ ! -n "${FTPUSRNAME}" ];then echo "Plase Type FTP Se...
echo -n "FTP User Pass:"
read FTPUSRPASS
if [ ! -n "${FTPUSRPASS}" ];then echo "Plase Type FTP Se...
echo -n "Download Server Path:"
read DLSVRPATH
wget -N -r --output-file=./log/${FTPSVRNAME}_`date +%Y%m...
終了行:
[[シェルスクリプト]]
*説明 [#kb40900c]
wgetコマンドにて、FTPセッションを使用して、ファイルのダウ...
*スクリプト [#fd1622cc]
#!/bin/bash
echo -n "FTP Server Name:"
read FTPSVRNAME
if [ ! -n "${FTPSVRNAME}" ];then echo "Plase Type FTP Se...
echo -n "FTP User Name:"
read FTPUSRNAME
if [ ! -n "${FTPUSRNAME}" ];then echo "Plase Type FTP Se...
echo -n "FTP User Pass:"
read FTPUSRPASS
if [ ! -n "${FTPUSRPASS}" ];then echo "Plase Type FTP Se...
echo -n "Download Server Path:"
read DLSVRPATH
wget -N -r --output-file=./log/${FTPSVRNAME}_`date +%Y%m...
ページ名: