#!/bin/bash
ftpPath=$1
lcdPath=$2
ftp -v -n 192.168.92.1<<EOF
user administrator 123
cd $ftpPath
lcd $lcdPath
prompt
mput *
bye
EOF
![哭](http://static.blog.csdn.net/xheditor/xheditor_emot/default/cry.gif)
#!/bin/bash
ftpPath=$1
lcdPath=$2
ftp -v -n 192.168.92.1<<EOF
user administrator 123
cd $ftpPath
lcd $lcdPath
prompt
mput *
bye
EOF