[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: deleting files (not always)
Sachin Dole forced the electrons to say:
> How can I delete files (from a program) only when it is known that no user
> is reading or writing that file at that moment???
Just unlink(2) the file. It is guaranteed that the file will exist until
the last file descriptor to it has been closed.
The prompt for all occasions:
export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> "
--------------- Binand Raj S. (binand@xxxxxxxxxxxxxxxxxxxxx)