if you're automating a single copy, then i'd using scp not sftp, as that can just mimick a single local cp command on a command line. sftp can use the -b option to list a command file, but for a single file, that's hopefully OTT. this coupled with preshared keys under ssh and there is no automation to do... just a single scp command to put wherever you want.
|