I'll try the ncftpput program.  It seems like it will work.  I'm calling it from
crond like this:

/usr/bin/ncftpput -a -u UserName -p PassWord NT.host.name . '/radiator/users'

I'll just have to wait until it is time for the cron job to happen and see
if the users file get's updated on the NT.

Thanks for the tip.

John Kicklighter
Internet 2xtreme

Date sent:              Fri, 05 Mar 1999 10:30:58 +0000
From:                   Stuart Henderson <[EMAIL PROTECTED]>
Organization:           Eclipse Networking Ltd.
To:                     [EMAIL PROTECTED]
Copies to:              [EMAIL PROTECTED]
Subject:                Re: (RADIATOR) Distributing a users file

> [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