<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="index" title="Text File" newcontext="true">
<p>
#!/bin/csh -fv
</p>
<p>set mail = /usr/ucb/mail
set debuglog = &quot;$1&quot;
#
#set whocares = murphy@dccs
#
</p>
<p>if (&quot;$debuglog&quot; == &quot;&quot;) then
	echo &quot;Usage: $0 &lt;logfilename&gt;&quot;
	exit -1
endif
</p>
<p>grep -s :FatalError &quot;$debuglog&quot;
if (&quot;$status&quot; == 0) then
    $mail -s &quot;Gopher TechInfo Gateway Log&quot; $whocares &lt; $debuglog
endif
</p>
<p>rm -f $debuglog
touch $debuglog
chown daemon $debuglog
</p>
</card>
</wml>
