I'm attaching a patch that adds a small section to the translator_primer 
webpage.  It describes how to combine /hurd/run and fortune to create a 
~/.signature file.  I pretty much copied it from one of Samuel past 
presentation slides.

Thanks,

Joshua

diff --git a/hurd/documentation/translator_primer.mdwn b/hurd/documentation/translator_primer.mdwn
index e5c8c160..0c4d520d 100644
--- a/hurd/documentation/translator_primer.mdwn
+++ b/hurd/documentation/translator_primer.mdwn
@@ -47,6 +47,18 @@ you remove the translator from the file "hello"
 via "settrans -g hello".
 Having done that, verify that now the file is empty again.
 
+### Getting your Daily Fortune
+
+The run translator returns the result of running a program.  When mounted on a filesystem node, reading from that file would return the result of executing the program.  When combined with the fortune program you can create a file that will give you a different fortune every time you access it.
+
+$ sudo apt-get install fortune
+$ settrans -c ~/.signature /hurd/run /usr/games/fortune
+$ cat ~/.signature
+  Your lucky number has been disconnected.
+$ cat ~/.signature
+  Don't look now, but there is a multi-legged creature on your shoulder.
+
+
 ### Transparent FTP
 
 We already setup a a transparent FTP translator for you at /ftp: 
-- 
Sent from Emacs and Gnus

Reply via email to