[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Serial monitor progress
- Subject: Serial monitor progress
- From: Jim <jim@magrathea.plus.com>
- Date: Thu, 4 Oct 2007 16:09:01 +0100
- Approved: The Culture
- Cancel-lock: sha1:FqypPEkFeHKN0af0RISBeEc6y0Q=
- Newsgroups: comp.sys.apple2
- User-agent: slrn/0.9.8.1 (FreeBSD)
- Xref: g2news2.google.com comp.sys.apple2:4012
I've made some progress on the 'Apple2 as a serial console' and here are the
screenshots to prove it:
<http://www.ursaminorbeta.co.uk/AppleSecLog1.jpg>
<http://www.ursaminorbeta.co.uk/AppleSecLog2.jpg>
What I'm doing here is piping the output from my FreeBSD server (after
suitably tweaking it) to the serial port. The command running on the server
is:
tail -n 1 -F /var/log/security|awk '{sub(/:.*$/,"", $10); sub(/^.*:/,"",
$11); print $1, $2, $3, $10, $11}' > /dev/cuad0
What this does is take a line from the security log which normally looks
like this (should be all on one line):
Oct 4 14:51:17 wotan kernel: ipfw: 65435 Deny TCP 212.119.162.40:2156
192.168.2.2:135 in via rl0
and tweaks it to look like this:
Oct 4 14:51:17 212.119.162.40 135
in order to fit on a 40col screen. It's showing the source IP and the
destination TCP port.
At 300 baud.
With a wee dumb comms programme running on the //e that includes a PEEK that
clicks the speaker after every character received.
Stupid, but cool.
Jim
--
http://www.ursaMinorBeta.co.uk
WORMELOW TUMP (n.)
Any seventeen-year-old who doesn't know about anything at all in the world
other than bicycle gears.