9fans archive / 2000 / 08 / 2 /    prev next

From: dhog@pla...
Subject: Re: [9fans] warning
Date: Tue, 1 Aug 2000 00:25:20 -0400

> I think the main reason ^p exists is
> so you can reboot cpu servers from
> terminals easily.  It's possible to send
> ^t ^t (go into another window, type
> something, come back) r to reboot
> a cpu server over a serial connection,
> but it's too easy to forget that dance.

I have a script called "tt" that I use.  From
con, I escape out with control-\ and type !tt r
(or !tt p etc).  The script is:

#!/bin/rc

echo XX$1 | tr X '\024'


I guess it could be just a simple echo, but I
don't like having control characters in shell
scripts (especially "dangerous" ones).