home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!ames!data.nas.nasa.gov!taligent!apple!autodesk!dansmith
- From: dansmith@Autodesk.COM (Daniel Smith)
- Newsgroups: comp.lang.perl
- Subject: got a symlink checker/chaser for crontab?
- Summary: don't want dead links sitting around
- Message-ID: <17544@autodesk.COM>
- Date: 27 Aug 92 00:43:12 GMT
- Organization: Autodesk Inc., Sausalito CA, USA
- Lines: 19
-
-
- I often tie together filesystems with symlinks, so that
- something like /usr/local/src will contain links which point all
- over the place. Every so often, I try to cd somewhere I haven't
- been for weeks, only to find that the link has "dried up".
-
- Well... I basically want a script that will take
- "find / -type l -print" and check the links to see if they resolve. It's
- something I'd run once a day out of crontab. Rather than reinventing
- what must be a somewhat common wheel, I thought I'd ask here first.
- The script would produce a list of symlinks in need of updating/deletion,
- which presumably would get piped into mail.
-
- Daniel
- --
- dansmith@autodesk.com dansmith@well.sf.ca.us
- Daniel Smith, Autodesk, Sausalito, California, (415) 332-2344 x 2580
- Disclaimer: written by a highly caffeinated mammal
- $|=1;for("..."," hacker"," perl"," a","just"){print $l=$_.$l,"\015";sleep 1;}
-