[EMAIL PROTECTED] wrote:
> 
> Now, I need to find a way to distribute a users file 
> between them.  I have one running on linux and the other 
> running on NT.  I was going to put something together 
> to run on linux's crontab and simply FTP the file every 
> day.

I believe ncftp has a batch mode, or you could use something like
smbclient (or smbfs and cp the files - I guess you want them to be
separate for when the NT box dies :-)  In fact you should just be able
to set up something with the standard ftp with a .netrc file (man ftp
for info) and use this:

echo "get users
quit
" | ftp server

You might want to terminate the user file with a test entry that you can
grep for to make sure the transfer succeeded before replacing a working
one. (grep -q testentry && cp newuserfile users)

Between two UNIX boxes, scp (part of ssh) would usually be an excellent
choice - it has a simple command-line interface and uses a secure
channel for the transfer. (It will also do on-the-fly compression if you
ask it to).

You might even be able to use an NT command-line version of scp to pull
the files from ssh running on the Linux box. I don't know if the
standard version will compile under Cygwin but maybe worth a try or
there is a commercial version available.

Hope this helps
Stuart

-- 
  Stuart Henderson
  Network Engineer, Eclipse Networking Ltd.

===
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to