Hi there, On 3/28/06, NetNeanderthal <[EMAIL PROTECTED]> wrote: > > On 3/28/06, Nick Guenther <[EMAIL PROTECTED]> wrote: > > Well you could always script it: > > > > #dhcpmeep.py > > <chop> > > > after it. Of course, it does this in a very bad (and untested) way, > > but you get the idea. > > [EMAIL PROTECTED] ~]$ man -k python > python: nothing appropriate
Is your python install broken? -- You should have gotten back something more like: # man -k python pydoc(1) - the Python documentation tool python(1) - an interpreted, interactive, object-oriented programming language pythonw(1) - run python script with GUI -- Or, because Python is designed to run on many diverse platforms, it has it's own form of documentaiton that I feel resemble UNIX man pages (in spirit and intention). From either the interactive prompt or any python prorgram the help is available: # python Python 2.4.1 (#2, Oct 12 2005, 01:36:32) Type "help", "copyright", "credits" or "license" for more information. >>> help() Welcome to Python 2.4! This is the online help utility. If this is your first time using Python, you should definitely check out the tutorial on the Internet at http://www.python.org/doc/tut/. Enter the name of any module, keyword, or topic to get help on writing Python programs and using Python modules. To quit this help utility and return to the interpreter, just type "quit". To get a list of available modules, keywords, or topics, type "modules", "keywords", or "topics". Each module also comes with a one-line summary of what it does; to list the modules whose summaries contain a given word such as "spam", type "modules spam". help> -- And additionally, using the same source for it's content, pydoc is a very popular tool for generating neatly printable documentation in html format, just try checking the pydoc(1) man page for all it's features, but here's a simple line that starts a http server with documentation on the host from which it is run: # pydoc -p 2222 That line would then start a webserver on the machine from which it was run, if it's your working desktop machine, simply hit http://localhost:2222/ This can also be seen in action at http://pydoc.org -- Now, if you were saying that suggesting Python was inappropriate for the task in this thread, I'd have to say you are absolutely correct. A shell script would do the trick, without forcing someone to use Python. However, the sed/awk example posted is, from some individuals perspective, far more complex than using Python to do the same job- (if you know/like python, that is). Best, .ike