eshion / vim-sync Goto Github PK
View Code? Open in Web Editor NEWAutomatic sync SFTP,FTP,... for buffers in vim
Automatic sync SFTP,FTP,... for buffers in vim
Can it support multi server project?
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
username: spider
password:12345
remote_host: ftp.mysite.com
remote_path: /hello/world
thanks
Hi, I'm getting an error when running this script. I believe it has something to do with spaces in the current directory, but I'm not sure how to fix.
This is the error:
zsh:1: no such file or directory: /Users/maarten/Google
shell returned 127
Can you help me out?
When I use vim-sync and type my leader key followed by "su", I get the following error:
expect: option requires an argument -- c
usage: expect [-div] [-c cmds] [[-f] cmdfile] [args]
shell returned 1.
Press ENTER or type command to continue
I copy-pasted the sftp code as shown into an executable .sync file and then changed "login_name" and the 1.2.3.4 IP address to my login name and the server's IP address.
Any ideas on how to fix this?
Thanks.
I have a MacBook Pro with OSX 10.9, and I came to notice your documentation is wrong.
Instead of having the configuration script for sftp
expect -c <<'END_EXPECT'
Actually, there is no needed expect at all...
With this command it will work the same:
#!/bin/sh
case "$1" in
upload)
cmd="put $3 /var/www/localhost/htdocs/dev1.site.org/$3"
;;
download)
cmd="get /var/www/localhost/htdocs/dev1.site.org/$3 $3"
;;
esac
echo "$cmd" | sftp -i /Users/myuser/.ssh/private.key [email protected]
You can refer to: http://bit.ly/YdIzyH
i want to ignore .git on my local
I found that something got wrong when uploading a file to a folder that not existed on the server.
just change
rsync -azcuv -e "/bin/ssh -p36000 -q" `dirname $0`/$2/$3 login_name@remote_host:/remote_path/$2/$3
to
rsync -azcuv -e "/bin/ssh -p36000 -q" `dirname $0`/$2/$3 login_name@remote_host:/remote_path/$2/
can work better~
Your shell script examples use /bin/sh as the interpreter but use bash equality checks, which break the script right from the get-go.
You also mention our .emacs file right at the end, but this is not an emacs plugin. Is it?
Is there a way to add a handler to keep the ssh connection alive?
Hello,
Can you give me configuration example of sftp?
I got confuse with current configuration example on the documentation
If I had this configuration, where should I insert it?
Host : 10.3.2.1
username : root
password : 123456
dir_location : /var/www/html/test
Thanks for your help.
Cheers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.