node 如何用shell进行scp传输?
如题,请大神支招~~~
16 回复
@i5ting 我这里可以
> fs.existsSync('/tmp/.zshrc');
false
> var scp = exec('scp $HOME/.zshrc reverland@localhost:/tmp/');
undefined
> fs.existsSync('/tmp/.zshrc');
true