Helper program 'm'
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 10 Dec 2014 06:16:58 +0000 (22:16 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 10 Dec 2014 06:55:08 +0000 (22:55 -0800)
Accesses the monitor from userspace, via Ron's #Z.

/ $ m kfunc whatever
/ $ m help
/ $ m nanwan

kern/kfs/bin/m [new file with mode: 0644]

diff --git a/kern/kfs/bin/m b/kern/kfs/bin/m
new file mode 100644 (file)
index 0000000..96a4fe3
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/ash
+
+if [ $# -lt 1 ]
+then
+       echo Usage: $0 CMDS TO KERNEL MONITOR...
+       exit
+fi
+
+echo $@ > "#Z/mondata"