#!/bin/sh
d=`/bin/date --date="1 day ago" "+%Y-%m-%d"`
ftp -i -v -n 192.168.154.47 <<EOF
user sky mtest000
put $1 /opt/logs/$2.$d
bye
EOF
#!/bin/sh
d=`/bin/date --date="1 day ago" "+%Y-%m-%d"`
ftp -i -v -n 192.168.154.47 <<EOF
user sky mtest000
put $1 /opt/logs/$2.$d
bye
EOF