
dancer at netfort
Jan 6, 2006, 8:55 PM
Post #1 of 2
(339 views)
Permalink
|
|
I would implement 'ksh' like this if there weren't any ksh before
|
|
Hi, Over the winter holidays I've implemented a 'ksh' that should have been implemeted this way if we didn't have anything named under the name of ksh and implemented today. An example session will look like this: $ gcc realksh.c -I /usr/include/readline -Wall -O2 -o realksh # ./realksh REAL ksh: printk("Hello world\n"); Building modules, stage 2. KMSG: <4>Hello world REAL ksh: printk("Hello world %li\n", jiffies); Building modules, stage 2. KMSG: <4>Hello world 4302979318 For each line entered, it will generate a C source-code, and create a module, and run insmod/rmmod. For convenience, /proc/kmsg is monitored for your printk pleasure. If noone realized this, this is on the 'this is a joke' category, but available as part of binfmtc[1] package, which provides mostly useless plethora of binfmt-misc related tools. [1] http://www.netfort.gr.jp/~dancer/software/binfmtc.html.en regards, junichi
|