Question : Problem: can I move files by using MV dos command even if the file is being written?

Hi Experts:

I have a script that move files from one location to another location. another script will transfer file from different server to my server. I am trying to use the mv command to move the transferred files to the final destination. My question is that the MV command will error out if the transfered file is still being written?

Thanks for any input

Answer : Problem: can I move files by using MV dos command even if the file is being written?

This depends on the transmitting program. On Windows, it should always be impossible to move a file which is written in. And this is the normal behaviour, if you use standard programs like copy and move.

Renaming/moving is part of some FTP script we use for text data import interfaces, and this worked out reliable (as long as you are not on a AS/400).
Random Solutions  
 
programming4us programming4us