On Tuesday 21 June 2005 17:21, daniel parkes wrote:
hy people!,
the thing is i have an AIX box that downloads things from a ftp and another program that moves everything that's in the directory to another FS the thing is that in aix if you try to cp a file that is in use it says resource is busy but now im migrating the program to suse linux and i find this problem:
even if the download hasnt finished the cp or mv starts and my file gets copied or moved in a corrupt state, thats why i was looking for a ftp server
You mean client, surely
that blocked the files until the download has finished . and the prob is i cant change the program to put in a scrip it has to stay as it is!.
Why? Since you are free to choose another ftp client, why not simply make it a simple script like cd $TMPDIR wget $FILENAME mv $FILENAME $FINAL_DESTINATION_DIR There is no way to "block" files, the only way I can see would be to play with permissions, but if you're free to pick an ftp client, why not do it the easy way?