MJ Ray markj@cloaked.freeserve.co.uk wrote:
bsamuels@datamansys.co.uk writes:
Can I automate this process from within a script?
Yes, possibly, with .netrc and ftp, but why don't you tell us the actual problem you're trying to solve with this script and comparison and there's probably another solution out there.
Ok! I have created a Bash script that updates a web log on my machine at home from my web site logs so that I can easily produce reports. I use wget with -c and FTP to download only the latest part of the web log that has been added since the last access.
This, of course, does not take into account that, at some stage, the web log on the remote server will be rotated when it will suddenly become smaller than the one on my machine.
That is what I need to check for so that when this happens I can then download the whole file.
Barry Samuels
( I sometimes think that I should have been christened 'Pooh' - a bear of little brain )