Powered by Invision Power Board


  Reply to this topicStart new topicStart Poll

> Protect Files while being copied, Protect Files while being copied
kkelleher
Posted: May 17 2005, 05:12 PM
Quote Post


Newbie
*

Group: Members
Posts: 1
Member No.: 1006
Joined: 17-May 05



Hi,

New member ... so Hi everybody!

Is is possible to protect files that are being copied into a directory from being moved/deleted/read etc while the copy command is being executed.

Thus if files are being moved from Directory A to Directory B, I would like to ensure that no file is copied from B until the copy from A is complete.

I don't think you get this security for free in UNIX but I am not sure!

thanks,
Kevin
PMEmail Poster
Top
vibhor_agarwalin
Posted: May 23 2005, 12:23 PM
Quote Post


User Level: 3
***

Group: Members
Posts: 34
Member No.: 788
Joined: 1-February 05



Won't fuser help in this case.

You can write a simple script in which you regularly check the return value of fuser before copying.
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | General UNIX/Linux Forum | Next Newest »

Topic Options Reply to this topicStart new topicStart Poll

 



[ Script Execution time: 0.1752 ]   [ 12 queries used ]   [ GZIP Enabled ]




Partners: Cambridge Plus :: <Link Available> :: PIC Boot-loader Utility :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum