2010-10-12 10:19

[Shell] FTP 上傳

#!/bin/bash

PATH=/bin:/sbin:/usr/bin:/usr/sbin
export PATH


#==( 上傳至 FTP )==
ftp -i -n 192.168.2.100 <<FTPIT
user username password
bin
put /home/user/local_file /home/user/remote_file
quit
FTPIT 

exit 0

0 回應: