I've added an /hurd/run example to the translator_primer page.

Joshua Branson <[email protected]> Wed, 26 Apr 2017 22:49:56 +0000
Newsgroups gmane.os.hurd.web.devel
Message-ID <BN6PR10MB17297FE0698EF3F02062CC56A6110@BN6PR10MB1729.namprd10.prod.outlook.com>
--IHt6BP3DdcW91sBQb8nsIgx9F33cAMsAm
Content-Type: multipart/mixed; boundary="V5wkMjkDPJiL0a59TQTAfBgc1buxd9XII";
 protected-headers="v1"
From: Joshua Branson <[email protected]>
To: [email protected]
Message-ID: <[email protected]>
Subject: I've added an /hurd/run example to the translator_primer page.

--V5wkMjkDPJiL0a59TQTAfBgc1buxd9XII
Content-Type: multipart/mixed;
 boundary="------------90D7045A5A141B01B9E7156A"

This is a multi-part message in MIME format.
--------------90D7045A5A141B01B9E7156A
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello,


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


P.S. I sent this email in Gnus, but I'm not sure if it went through.=20
Some of the other clients are hard to use too..


--------------90D7045A5A141B01B9E7156A
Content-Type: text/x-patch;
 name="update-translator_primer.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename="update-translator_primer.patch"

diff --git a/hurd/documentation/translator_primer.mdwn b/hurd/documentati=
on/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.
=20
+### Getting your Daily Fortune
+
+The run translator returns the result of running a program.  When mounte=
d on a filesystem node, reading from that file would return the result of=
 executing the program.  When combined with the fortune program you can c=
reate 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
=20
 We already setup a a transparent FTP translator for you at /ftp:=20


--------------90D7045A5A141B01B9E7156A--

--V5wkMjkDPJiL0a59TQTAfBgc1buxd9XII--

--IHt6BP3DdcW91sBQb8nsIgx9F33cAMsAm
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEqtYX921QXBiKVY0LyPo9gsexMm8FAlkBJCIACgkQyPo9gsex
Mm9d6Qf+LE5nataTSoE8uQlegWIiSx5I7fpRSxhrWfhu10SbYmWDJTpcd8kJRbbb
+EbGGQvd0cy7P/5Bck2HpY1eKbJ2XTEgJKetQhH0Vl5Uxgc48LMEiTKjYEiyyTm6
IKOffDuI4mQ+ZZuIpkcbCmCIKFWfh2pW0C8DYhJRlI6fsTVkLvcUcFoGqVd9cSIX
wZmJv9JaD893oLN9CjrPPFTfNtpxHE7vRZNIOi2/Q7aUb5OBEcUGFUFba56w3HBI
0aNXr8vFBnN/z5nMf0dkw5vVwtUfMwfubL/LgzorXWbLXoMtEYdYNcN50Bl15r+q
N6NbsjJrpp+bA+/YeHuPD5SHNHv78Q==
=sXUJ
-----END PGP SIGNATURE-----

--IHt6BP3DdcW91sBQb8nsIgx9F33cAMsAm--