On 04-Mar-2002 Harry Putnam wrote:
> Angus D Madden <[EMAIL PROTECTED]> writes:
> 
>> Does anyone know a of utility to check if a symbolic link is valid?
>>
>> I used a program called vpopbull (part of vpopmail package) to send a
>> notice to a bunch of users.  To my surprise, vpopbull ignored the
>> complete path I gave it and created links to a message that doesn't
>> exist.  Now, when users try to open the message, it gives them an error.
>>
>> If there's a utitlity I can use with find to test the validity of links
>> I could clear the problem up right away.
> 
> I'm new here so not sure if there is a deb package but there is a
> program called symlinks.  It does exactly what you want to do.  You
> just aim it at a directory and it recurses thru and gives various
> reports depending on the flags you give it.  Probably easy to find out
> if there is a debian package but I didn't know the technique yet.
> 

$ auto-apt search symlinks
etc/devfs/symlinks.d/   utils/intel-rng-tools
usr/bin/symlinks        utils/symlinks
usr/share/doc/symlinks/ utils/symlinks

auto-apt comes from the package of the same name.  It is quite the nifty tool. 
One of its more interesting features and where its name comes from is its
original intended use -- it can take over your shell and whenever a file not
found message occurs it will see if that file exists in a deb package and offer
to install it.  This is a nice way to install a truly minimal system that only
has the programs you use or the packaging system requires.

Reply via email to