> >
> > How do I automatically ftp file from one server to another with being
> > anonymous. I think I have to do a chat script or something?
> > -eric
I set up the following perl script as a cron job. It uses scp2. Works like a charm.
(home is defined in my /etc/hosts with a specific IP addy.)
#!/usr/bin/perl
#
# nightly ftp from office to home for offsite backup
@files = `ls /office/bkup/*.gz`;
foreach $file (@files) {
push(@dir, $file);
}
foreach $DIR (@dir) {
`scp2 $DIR root@home:/office/$DIR` or die "in foreach can't
put $DIR: $!\n";
}
--
steve
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list