#!/bin/bash
echo "Please Enter FTP Server IP Address!!"
read server
echo "Please Enter Put file!"
read file
ftp -n <<EOF
open $server
user ftp password
cd put
put $file
bye
EOF
echo "OK!!!"
转载于:https://blog.51cto.com/weiweinews/471819
#!/bin/bash
echo "Please Enter FTP Server IP Address!!"
read server
echo "Please Enter Put file!"
read file
ftp -n <<EOF
open $server
user ftp password
cd put
put $file
bye
EOF
echo "OK!!!"
转载于:https://blog.51cto.com/weiweinews/471819