Newsgroups: comp.os.linux.networking
Subject: Re: unattended FTP
References: <[email protected]> <[email protected]>
zues  writes:

> Thomas Ammermann wrote:
> 
> > Hi everyone,
> > I'm trying to find a solution for my nightly backup.
> > I tar and copy all important files into a special directory (still on
> > the same machine).
> > Now I want to transfer these tarballs onto another machine, where
> > they
> > can be picked up by the backup software and then written to tape.
> > I tried NFS, but that causes some problems, because a firewall is
> > between those two machines.
> > Does anyone know of a method such as "unattended FTP" (my own
> > creation
> > ;-), where I can transfer files from one machine to another via FTP
> > without having to sit at the console and type
> > "put file1.tar.gz"
> > "put file2.tar.gz"
> > ...
> > ??
> > Help is greatly appreciated.
> >
> 
> hi,
> 
> check manual for .netrc .. it might be useful

Another useful idea is to look at utility called expect. 
It is a tool to automate this kind of things that are 
originally designed for manual text based interface... 
Basically you can write a script with it from scratch, 
or even automatically generate script from one manual 
example session you do and then just do some slight 
editing to it. 

For more information take a look at 
http://expect.nist.gov/FAQ.html

-- 
Tomi Engdahl (http://www.iki.fi/then/)
Take a look at my electronics web links and documents at 
http://www.epanorama.net/