Afficher un message
Vieux 18/08/2006, 08h50   #2
Danish
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: shell script to compare and delete files from a server???


Danish wrote:
> Hi,
> I just got this script to write from my boss, but I thought I should
> discuss my problem here too.
>
> Ive got this situation where:
> 1) There are 2 server's ( A & B) located at quite a distance from each
> other..
>
> 2) Only B can access A using the shell. A cannot access B.
>
> 3) There is a perl script on B which runs every hour. It downloads
> certain files from another remote server using ftp. When these files
> have been downloaded comepletely they are 'scp'd to A using a shell
> script.
>
> Now I have been told to:
> 1) Make a shell script in B, to compare, whether the downloaded files
> in B have been completely 'scp'd to A.
> 2) When the comparing has been done, giving a result that the files are
> same on both the servers, the script then should delete the downloaded
> files from B
>
> Frankly speaking, I am confused as to how to go about comparing the
> files...
>
>
> Thanks
> Danish


Forgot to add
> 2) Only B can access A using the shell. A cannot access B. The access is possible using ssh


  Réponse avec citation
 
Page generated in 0,05621 seconds with 9 queries