scp -C afile foo:should have a dot (.) at the end:
scp -C afile foo:.This dot is the relative pathname for the current directory -- which, for the remote scp, is your home directory on that host.
(A here-document feeds text from the script file, line by line, into ftp, until the shell finds the matching pattern on a line by itself.)
[March 2003 errata] [Return to articles page] [May 2003 errata]
Last change: 30 April 2003
Contact Jerry Peek