
July 22nd, 2002, 03:43 PM
|
|
Contributing User
|
|
Join Date: Apr 2000
Location: germany
Posts: 122
  
Time spent in forums: 12 h 45 m 21 sec
Reputation Power: 17
|
|
what about ssh
I realized an automated secure file transfer (running as a cron job every hour) using the SSH SCP (secure copy) command and the perl module Expect. Looked like this:
use Expect;
my $prog = '/usr/bin/scp';
my $user = 'someone@localhost';
$scp = Expect->spawn($prog, ("$user:FILE", '/tmp'));
(...)
Consult the module docs and SSH docs for more information. This is definetely a way to implement secure file transfers using standard tools.
|