Heres the scenario
There are 3 servers A,B and C
Every day night at 10:00 PM a file is created on server A and copied
over to server B. This is a Huge file and it takes approximately 1/2
hour to copy it over. Sometimes they start the process later if the work
has not completed till then.
I want to write and schedule a shell script which copies this file from
server B to server C only after it has been completely copied over to
server B from server A. If its in use or being copied over my script
should wait for 2 minutes before trying again and it should keep on
trying for 1 hour. If it succeeds it should copy the file over otherwise
it should exit and send an email informing this.
Please Please Suggest. I am a newbee to Unix .
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG