NCFtp has a sub program called NCFtpPut you can use.  It runs from the
command prompt, making it a good option to write a simple shell script to
run from cron.  You can set the job to run periodically, at which time
NCFtpPut will ftp into machine B, compare the two files, upload the one
from A if they are different, or shut down if they are the same, leaving a
log file of the action taken for you to peruse.  You can use NCFtpGet to
accomplish the same, but you'll have to run this one from machine B.

Glen

Glen Lee Edwards
[EMAIL PROTECTED]

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: "[EMAIL PROTECTED]" for general perl questions
::  [EMAIL PROTECTED]
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


On Mon, 14 Feb 2000 [EMAIL PROTECTED] wrote:

>On Mon, 14 Feb 2000, Zaigui Wang wrote:
>> I need to regularly update our web site. All the changes are made and
>> tested  on machine A, and the www server is on machine B. Is there an easy
>> way to update machine B based on whatever changes that have been made on
>> machine A?
>> Tar everything up on machine A and untar it on machine B, of course, will
>> work. But that is a little bit overkill, if only a tiny bit is changed.
>> Any ideas?
>
>I use a program called sitecopy. I can't remember exactly where I got it,
>but I'm sure a search of freshmeat will find it. (If you want a GUI
>interface don't forget to use './configure --enable-gnomefe' when preparing
>to compile it. Read the INSTALL file.)
>
>Mit freundlichen Grüßen,
>Russ.
>                Ne Desit Virtus - The Behne Family Motto
>
>  Mary had a little key;
>    she kept it in escrow.
>      and everything that Mary sent,
>        the feds were sure to know.     -- Andy Starritt, in sci.crypt
>
>
>


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to