2 # little man page getter for olpc (which doesn't have man installed)
5 from subprocess
import *
6 from urllib
import urlopen
8 url
= 'http://man.linuxquestions.org/?query=%s§ion=0&type=0'
10 if len(sys
.argv
) != 2:
11 print "What manual page do you want?"
13 text
= urlopen(url
% (sys
.argv
[1])).read()
15 text
= Popen(["echo", text
], stdout
=PIPE
,stderr
=PIPE
)
16 Popen(["less"], stdin
=text
.stdout
).wait()