src/utils/qa/findBrokenLinks.csh 1.1
1.1 2010/06/04 01:36:15 rhead
This has been used in cron jobs run by Angie to find broken links in gbdb and goldenPath for a long time. The jobs are switching to the qateam crontab, and we are finally checking this little script in.
Index: src/utils/qa/findBrokenLinks.csh
===================================================================
RCS file: src/utils/qa/findBrokenLinks.csh
diff -N src/utils/qa/findBrokenLinks.csh
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/utils/qa/findBrokenLinks.csh 4 Jun 2010 01:36:15 -0000 1.1
@@ -0,0 +1,10 @@
+#!/bin/csh -ef
+
+# This is used by cron jobs. Angie's comments on what it is doing:
+# The find command finds broken links, and passes them to ls -l, and that is
+# what is in the email output. If ls -l has no arguments, by default it will
+# list the current directory, which I don't want to see in email, so the
+# --no-run-if-empty is to suppress that.
+
+find -L $argv -type l -lname \* \
+| xargs --no-run-if-empty ls -l