#!/bin/bash
ftp_server="192.168.16.57"
ftp_username="fuser"
ftp_password="1qaz@WSX3edc"
local_file="/home/user/dumpdir/*.txt"
remote_path="/home/user/dumpdir"
ftp -n $ftp_server <<END_SCRIPT
quote USER $ftp_username
quote PASS $ftp_password
prompt off
mput *.txt
沒有留言:
張貼留言