From: David Kirkby on
On Jan 10, 2:19 pm, nob...(a)nowhere.invalid (Will Renkel) wrote:
> drkir...(a)gmail.com wrote:
>
>   >I've got the following setup.
>   >
>   > * Keyboard, mouse and monitor on Sun Ultra 27. The Ultra 27 has no
>   >serial ports.
>   > * I SSH from the Ultra 27 to a Blade 2000, which has serial ports on
>   >it.
>   > * I use the serial port of the Sun Blade 2000 to set up a Sun Blade
>   >1000.
>   >
>   >
>   >Ultra 27 $  ssh drkirkby(a)blade 2000
>   >blade 2000 $ tip hardwirea
>   >{OK} boot cdrom.
>   >
>   >
>   >So I've booted the Blade 1000.
>   >
>   >If I screw up, and want to send a break to the Blade 1000, how can I
>   >do it?
>   >
>   >Dave
>
> For me I just ^C and it sends a break with no problem.
>
> --
> ---------------------------------------------------------------
>  Will Renkel
>  Wheaton, Ill.
>
> ---------------------------------------------------------------
Thanks everyone.

I'm sure ^C does not work.

I eventually got the machine set up (had a problem picking the right
terminal type. Sun workstation and command tool, or whatever they are
called in Solaris 8 did not work). I think I went for VT100 in the
end. The machine is now in my garage (mainly as a heater), so I can't
check any of these.

Lots of different views on this, which is what happens if you Google
the problem.

Dave
From: Greg Andrews on
David Kirkby <drkirkby(a)gmail.com> writes:
>
>Ultra 27 $ ssh drkirkby(a)blade 2000
>blade 2000 $ tip hardwirea
>{OK} boot cdrom.
>
>
>So I've booted the Blade 1000.
>
>If I screw up, and want to send a break to the Blade 1000, how can I
>do it?
>

As has been explained, the tip program on the blade tells the
RS232 driver to generate the break signal. In order to command
tip to do this, you must send it a tilde (~) followed by a pound
(#). However, your ssh command defaults to also using tilde as
a command character, so it will swallow the tilde and not send
it along to tip. The easiest way to make ssh send a tilde is
to press two of them (~~). Ssh will swallow the first and send
the second. This results in two tildes and pound as the sequence
of keystrokes: ~~#

However, what hasn't been pointed out yet is that tip doesn't
always interpret a tilde as the start of a command. If you type
the ~~# at a point where tip isn't listening for a command, then
it will appear to ignore you. This causes a lot of people to post
angry rants about how unreliable tip is and how frustrating it is
to make it send a break.

Tip listens for command sequences when it thinks you're at the
start of a new command. I.e., after you've pressed Enter.
If you've typed a few other things and then try to tell it to
send a break, tip thinks you're in the middle of a command and
not the start, so it ignores the ~# you type. (ssh does this too)

So the way to reliably make tip send a break signal is to press
Enter once or twice, then tilde, then pound. Since you're going
through ssh, you add the extra tilde. So I'll write it out as
words:

Enter Enter tilde tilde pound

aka:



~~#

Enjoy!

-Greg
--
Do NOT reply via e-mail.
Reply in the newsgroup.
From: Greg Andrews on
nobody(a)nowhere.invalid (Will Renkel) writes:
>
>For me I just ^C and it sends a break with no problem.
>

Lots of people erroneously call that an RS232 "break" signal.
It isn't. It's a software interrupt signal.

-Greg
--
Do NOT reply via e-mail.
Reply in the newsgroup.
From: David Kirkby on
On Jan 13, 1:15 am, g...(a)panix.com (Greg Andrews) wrote:
> David Kirkby <drkir...(a)gmail.com> writes:
>
> >Ultra 27 $  ssh drkirkby(a)blade 2000
> >blade 2000 $ tip hardwirea
> >{OK} boot cdrom.
>
> >So I've booted the Blade 1000.
>
> >If I screw up, and want to send a break to the Blade 1000, how can I
> >do it?
>
> As has been explained, the tip program on the blade tells the
> RS232 driver to generate the break signal.  In order to command
> tip to do this, you must send it a tilde (~) followed by a pound
> (#).  However, your ssh command defaults to also using tilde as
> a command character, so it will swallow the tilde and not send
> it along to tip.  The easiest way to make ssh send a tilde is
> to press two of them (~~).  Ssh will swallow the first and send
> the second.  This results in two tildes and pound as the sequence
> of keystrokes:  ~~#
>
> However, what hasn't been pointed out yet is that tip doesn't
> always interpret a tilde as the start of a command.  If you type
> the ~~# at a point where tip isn't listening for a command, then
> it will appear to ignore you.  This causes a lot of people to post
> angry rants about how unreliable tip is and how frustrating it is
> to make it send a break.
>
> Tip listens for command sequences when it thinks you're at the
> start of a new command.  I.e., after you've pressed Enter.
> If you've typed a few other things and then try to tell it to
> send a break, tip thinks you're in the middle of a command and
> not the start, so it ignores the ~# you type.  (ssh does this too)
>
> So the way to reliably make tip send a break signal is to press
> Enter once or twice, then tilde, then pound.  Since you're going
> through ssh, you add the extra tilde.  So I'll write it out as
> words:
>
> Enter Enter tilde tilde pound
>
> aka:
>
> ~~#
>
> Enjoy!
>
>   -Greg
> --
> Do NOT reply via e-mail.
> Reply in the newsgroup.

I might well have been up a creek without a paddle in this case. I was
using the interactive installer, but since the terminal type was not
correct, the screen was a mess. So it would have been impossible to
get to a command line. The installer would have swallowed up any
presses of enter. I think it accepts ESC-2, ESC-4 and perhaps ESC-5
depending on what menu you are in. But of course, when the terminal
type is all wrong, and all you can see is a mess, its next to
impossible to do anything. Hence my desire to send a break.

I think if all else had failed, I would have connected a laptop and
used Putty. I forget how to do it, but I have managed to send breaks
from that before.

From: hume.spamfilter on
David Kirkby <drkirkby(a)gmail.com> wrote:
> get to a command line. The installer would have swallowed up any
> presses of enter. I think it accepts ESC-2, ESC-4 and perhaps ESC-5

That doesn't matter; tip sees the return go by and "perks up" looking for a
tilde. If one doesn't come it just drives on.

--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/