#!/bin/bash
echo "Try to put $1 to server "
HOST=192.168.1.88
USER=vingo
PASSWD=121212
ftp -i -n -v <<EOF
open $HOST
user $USER $PASSWD
put $1
#get $1 for download
bye
EOF
echo "Try to put $1 to server "
HOST=192.168.1.88
USER=vingo
PASSWD=121212
ftp -i -n -v <<EOF
open $HOST
user $USER $PASSWD
put $1
#get $1 for download
bye
EOF