Changing hard linked data
Changing hard linked data
- Subject: Changing hard linked data
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Tue, 4 Oct 2005 16:14:58 +0200
I have several hard links (/tmp/a1 and /tmp/a2 and maybe many others)
pointing to some data.
Now I want to edit this data and save it so that my hard links all
point to the changed data.
exchangedata() does not help - it refuses to work with hard links.
Is there some Cocoa (or Unix) way to accomplish this?
I could get the inode with ls -i, could get all other links with find /
-inum nnn -print and do ln -f new_data old_hard_link -- but I want
something easier, more direct, less overhead.
Kind regards,
Gerriet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden