Copy or move file into directory with parallel processing from another process
问题 I'm running two processes on AIX. Process one is generating several files, process two does backups from all files that are in a backup directory. Process one will copy or move the files into the backup directory. Since process two is always running in the background there is the risk of it starting a backup of a file that is still in the process of being copied or moved and therefore incomplete. How can I avoid this problem? 回答1: Process one should create files in another directory (on the