This is an old revision of the document!
scp
Control flow
- On client
- construct
scpcommand to be executed on the server via ssh. append-v -r -p -dflags as appropriate. Resulting command stored incmdvariable - call
toremote()if destination is remote;tolocal()if destination is local - for 'remote to local' case, append
'-f <src>' toscpcommand to be run on the server
- On server
- for
-tor-fprivate flags:remin = stdin;remout = stdout
