[ On Wednesday, October 4, 2000 at 12:57:54 (-0400), Ruiyuan Jiang wrote: ]
> Subject: Automating sftp with UNIX scripts
>
> I want to automate sftp session to get and put files on the ssh2
> server through such as cron job. Is this possible to use sftp2? I
> tried to write a script much similar as regular ftp scripts to
> automatically get and put files on the ftp server without human
> interaction but failed. Does anyone know how? Thanks in advance.
Sftp is a stupid (and mostly unnecessary) hack to keep people who only
understand the `ftp' user interface happy (it's not using the FTP
protocol underneath/through SSH, after all).
Why don't you just use "scp"? It's easily automatable in scripts since
its user interface is really not that much different (at least in
philosophy) from "cp" itself!
--
Greg A. Woods
+1 416 218-0098 VE3TCP <[EMAIL PROTECTED]> <robohack!woods>
Planix, Inc. <[EMAIL PROTECTED]>; Secrets of the Weird <[EMAIL PROTECTED]>