Open vicheanak opened 8 years ago
if [ "upload" == $1 ];then ncftpput -m -u login_name -p login_password -P 21 remote_host remote_path/$2 dirname $0/$2/$3 elif [ 'download' == $1 ];then ncftpget -u login_name -p login_password -P 21 remote_host dirname $0/$2 remote_path/$2/$3 fi
dirname $0
username: spider password:12345 remote_host: ftp.mysite.com remote_path: /hello/world
thanks
Same problem here. I am getting confused about how to use this plugin.
Thanks!
i can't use this plugin it always give me ./.sync: 2: [: upload: unexpected operator ./.sync: 4: [: download: unexpected operator
!/bin/sh
if [ "upload" == $1 ];then ncftpput -m -u login_name -p login_password -P 21 remote_host remote_path/$2
dirname $0
/$2/$3 elif [ 'download' == $1 ];then ncftpget -u login_name -p login_password -P 21 remote_hostdirname $0
/$2 remote_path/$2/$3 fiusername: spider password:12345 remote_host: ftp.mysite.com remote_path: /hello/world
thanks