To follow up on cheekuperl's post, a symlink's target does not need to exist in order to be successfully created. Be aware it is possible that the original file might be changed, deleted, renamed, or otherwise altered between your check and the creation of the symlink, or even any time after you create the symlink. -r (see -X) and company act on the target of the symlink, so that might be another check that you may want to use.
Symlinks are nice, but just make certain that you are not thinking that they do more than they are designed to do.
--MidLifeXis
In reply to Re^4: error handling using symlink
by MidLifeXis
in thread error handling using symlink
by doubledecker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |