This is an old revision of the document!
scp
Control flow
- On client
- construct
scp
command to be executed on the server via ssh. append-v -r -p -d
flags as appropriate. Resulting command stored incmd
variable - call
toremote()
if destination is remote;tolocal()
if destination is local (handles 'remote to local' and 'local to local' cases) - for 'remote to local' case, append
'-f <src>
' toscp
command to be run on the server
- On server
- for
-t
or-f
private flags:remin = stdin
;remout = stdout