<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
hehe thx Kim :)<br>the reason I chose Pygophers is that it could serve over wap and the main thing, is that is a gopher server that can do Gopher +<br>Will u be writing gophernicus to run on multi-user systems ie *nix and with G+ functionality ?<br><br>-Barana<br><br>&gt; Date: Wed, 6 Oct 2010 13:00:10 +0300<br>&gt; From: kim@holviala.com<br>&gt; To: gopher-project@lists.alioth.debian.org<br>&gt; Subject: Re: [gopher] Someone out there with python skills want to help?<br>&gt; <br>&gt; On 6.10.2010 12:07, daniel g wrote:<br>&gt; <br>&gt; &gt; there must be more than one way to skin a cat.<br>&gt; &gt; is there a way u or anyone knows to get a gophermap to patch thru to the<br>&gt; &gt; os or to the gophermap so I can write in a hit counter?<br>&gt; <br>&gt; 1) Remove pygopherd, install gophernicus<br>&gt; 2) Create a gophermap and in it have a line like this:<br>&gt; <br>&gt; =/path/to/counter.sh "Woohoo! You're number " "."<br>&gt; <br>&gt; Here's the (grossly over-engineered) counter.sh:<br>&gt; <br>&gt; #!/bin/sh<br>&gt; <br>&gt; ##<br>&gt; ## A simple visitor counter to use with gophermaps<br>&gt; ##<br>&gt; ## Usage: counter.sh &lt;pre message&gt; &lt;post message&gt;<br>&gt; ##<br>&gt; <br>&gt; # Figure out a safe file to keep our counter<br>&gt; HASH=`echo "$SELECTOR" | md5sum | cut -d" " -f1`<br>&gt; FILE=/var/tmp/gopher-counter-$HASH<br>&gt; <br>&gt; # Get count and the previous visitors IP address<br>&gt; COUNT="`cut -d' ' -f1 $FILE`"<br>&gt; OLD_ADDR="`cut -d' ' -f2 $FILE`"<br>&gt; <br>&gt; # Increase counter only if the user is new<br>&gt; if [ "$OLD_ADDR" != "$REMOTE_ADDR" ]; then<br>&gt;          COUNT=$(( COUNT + 1 ))<br>&gt;          echo "$COUNT $REMOTE_ADDR" &gt; $FILE<br>&gt; fi<br>&gt; <br>&gt; # Output counter message<br>&gt; echo "$1$COUNT$2"<br>&gt; <br>&gt; <br>&gt; The reason I wrote Gophernicus was that none of the existing gopher <br>&gt; servers did what I wanted them to do. Not that they're bad software, I <br>&gt; just had different ideas.<br>&gt; <br>&gt; - Kim<br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; Gopher-Project mailing list<br>&gt; Gopher-Project@lists.alioth.debian.org<br>&gt; http://lists.alioth.debian.org/mailman/listinfo/gopher-project<br>                                               </body>
</html>