#!/bin/sh
#!/usr/bin/expect
HOST='xxxxx'
USER='xxxxx'
PASSWD='xxxxx'
if [ $# -ne 1 ]; then
#echo "$#"
echo "Usage: ./upload_hwrd.sh [git repository name]"
exit
fi
# copy INET git repository to HWRD
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
cd /proj/d_01036/repo/
bin
put $1
quit
END_SCRIPT
echo "Copy $1 to /proj/d_01036/repo/ successfully"
exit
No comments:
Post a Comment