in reply to Re: Problem with symlink
in thread Problem with symlink

Thanks for that. I have another question. Imagine this:

I have a perl script that symlinks file A to file B in another location. I then use file B as input for another program. I did not delete file A, and I did not do any modifications on it, so I'm assuming there is no broken link. But then the program tells me that file B's empty. Has anyone encountered this problem before?

Thanks in advance for any help!

Replies are listed 'Best First'.
Re^3: Problem with symlink
by cheekuperl (Monk) on Jun 18, 2012 at 05:10 UTC
    You've created link A to orig file B. It looks like:
    /path1/A -> /path2/B
    As per your statements, A is untouched. B is passed to another program. Is there any chance B has been modified?
    Did you verify the permissions on B?
    Because I can't think of any other scenario that would cause B to go empty.
    Note that A will still have non zero size (since it contains path of B).