Help with Logic - Copying the same files by 2 Linux scripts to same directory

view full story

http://www.unix.com – Hi All, Good Morning ! Can anyone help me understand the following scenario. Scenario 1 : 2 LINUX Scripts(Process 1 & 2) are trying to copy the same file (lets call it FileA.txt) to the same directory (lets say, /home/abc/zyz) at the same time. If both copy is happening at the same time, will the 2 LINUX Scripts abort ? Scenario 2 : Process 1 copied the fileA.txt to the directory & this file is being read by another script. Process 2 tries to copy the file again while it is being read by Process 1. What will happen in these 2 scenarios ? Thanks Much for your inputs, Freddi (HowTos)