Quantcast
Channel: How do I find and report on broken symbolic links automatically? - Server Fault
Browsing latest articles
Browse All 6 View Live

Answer by user549516 for How do I find and report on broken symbolic links...

Fedora and Ubuntu provide the symlinks utility. The utility is a native elf executable, and not a wrapper shell script. The utility was preinstalled on Fedora. You may need to install the utility on...

View Article



Answer by pooryorick for How do I find and report on broken symbolic links...

The problem with -L is that is has the side effect of expanding the search into sub-directories that are the targets of symlinks, which might not be expected or desired.With GNU findutils version of...

View Article

Answer by rorycl for How do I find and report on broken symbolic links...

This is a nice way of doing it with GNU find:find <root_dir_of_find> -follow -lname '*' | mail sysadmin -s 'Broken symlink report'The reason this works is because -lname with -follow (or -L)...

View Article

Answer by user9517 for How do I find and report on broken symbolic links...

Many ways to skin a cat This is quite portable (-L is posix requirement) find -L /path/you/care/about -type l 2>/dev/null | mail -s "Broken symlinks detected" womble@example.comYou didn't define...

View Article

Answer by grs for How do I find and report on broken symbolic links...

I will give you a Linux answer and you could adjust it to your Unix, if needed:find . -type l ! -execdir test -e {} \; -print >> broken_symlinks.txt; mutt -s "Broken symlinks" womble@example.com...

View Article


How do I find and report on broken symbolic links automatically?

As tidy sysadmins, we like to ensure that the little things are just as well covered as the big things (when time permits). One of these things is ensuring that our systems aren't full of broken...

View Article
Browsing latest articles
Browse All 6 View Live




Latest Images