Connect to XServes via direct serial connection

Apr 17, '07 07:30:00AM

Contributed by: Anonymous

We spent a long time trying to get our XServe Macs to talk serial to serial. Putting together many of the hints and pieces, we finally came up with a relatively simple Terminal solution. Just connect the serial cables together of two machines and run this on one of them:

#!/bin/bash

sudo /System/Library/StartupItems/SerialTerminalSupport/SerialTerminalSupport stop
screen /dev/cu.serial 57600
sudo /System/Library/StartupItems/SerialTerminalSupport/SerialTerminalSupport start

Here's what each line in the script does (other than the first one):
  1. Turn off serial support (incoming to the machine)
  2. Talk out over the serial port to the target machine
  3. Restore serial support (incoming to the machine)
[robg adds: I haven't tested this one.]

Comments (2)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20070414160212557