• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Changing hard linked data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Changing hard linked data
      • From: Tommy Nordgren <email@hidden>
  • Prev by Date: Re: testing exchangedata
  • Next by Date: Re: using zlib on OS X
  • Previous by thread: Re: SenTestingKit and debugging UnitTests
  • Next by thread: Re: Changing hard linked data
  • Index(es):
    • Date
    • Thread