#!/bin/sh
currentdate=`date +%Y%m%d%H%M`
cd /home/dongyl/source/semcj_wifi/out/target/product/rachael
rm -f *.zip
cd mysin/
rm -f *
cd ..
cp *.sin mysin/
zip -r rachael$currentdate.zip mysin/
expect ftp.sh rachael$currentdate.zip
spawn ftp [lindex 192.168.11.30]
expect "Name (*):"
send "android-bt\r"
expect "Password:*"
send "Lm9hftY9jp\r"
expect "ftp>"
send "binary\r"
expect "ftp>"
send "hash\r"
expect "ftp>"
send "cd dongyl\r"
expect "ftp>"
send "put [lindex $argv 0]\r"
expect "ftp>"
send "exit "