cancel
Showing results for 
Search instead for 
Did you mean: 

"purgelink" on HP-UX?

DavidJ
Regular Advisor

"purgelink" on HP-UX?

To those of you who know MPE, we have a purgelink command that allows the purgeing of a file while it's still in use.

What is the unix equivalent?
Everyday I beat my own previous record for number of consecutive days I've stayed alive.
3 REPLIES
Robert-Jan Goossens_1
Honored Contributor

Re: "purgelink" on HP-UX?

Hi David,

If I look at below reference it should be rm, but maybe you are looking for truncating an open file

# cp /dev/null file

http://invent9k.external.hp.com/~csy/cmds.cgi?mpe=summary

Hope this helps,
Robert-Jan
Gerhard Roets
Esteemed Contributor

Re: "purgelink" on HP-UX?

Hi David

You can "rm -f" a file that will behave similarly, but the same rules apply as with purgelink.

New processes wont be able to attach to the file( since its gone ).

The file space / inodes of the file will remain allocated till the last process lets go of its file handles on the file.

Regards
Gerhard
DavidJ
Regular Advisor

Re: "purgelink" on HP-UX?

closing all old open threads
Everyday I beat my own previous record for number of consecutive days I've stayed alive.