Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

send break via SSH and tip.

1,615 views
Skip to first unread message

David Kirkby

unread,
Jan 9, 2010, 8:37:50 PM1/9/10
to
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@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

Michael Laajanen

unread,
Jan 9, 2010, 8:44:10 PM1/9/10
to
Hi,

You must escape ~

~~#

see man tip

OPTIONS
-v Display commands from the .tiprc file as they are
executed.

USAGE
Typed characters are normally transmitted directly to the
remote machine, which does the echoing as well.

At any time that tip prompts for an argument (for example,
during setup of a file transfer), the line typed may be
edited with the standard erase and kill characters. A null
line in response to a prompt, or an interrupt, aborts the
dialogue and returns you to the remote machine.

Commands
A tilde (~) appearing as the first character of a line is an
escape signal which directs tip to perform some special
action. tip recognizes the following escape sequences:

~^D Drop the connection and exit (you may still
~. be logged in on the remote machine). Note:
If you rlogin and then run tip on the remote
host, you must type ~~. (tilde tilde dot) to
end the tip session. If you type ~. (tilde
dot), it terminates the rlogin.


/michael

Richard B. Gilbert

unread,
Jan 9, 2010, 9:10:06 PM1/9/10
to

AFAIK you can't! Break is not a character that you send. I believe the
"break" key sends a "space" signal for two or three character times
before returning to a "mark" signal. You have to hit the "break" key on
a terminal connected to an RS-232C serial port. There is, AFAIK, no way
to do this over the network.

Message has been deleted
Message has been deleted

hume.sp...@bofh.ca

unread,
Jan 10, 2010, 9:11:47 AM1/10/10
to
Richard B. Gilbert <rgilb...@comcast.net> wrote:
> AFAIK you can't! Break is not a character that you send. I believe the
> "break" key sends a "space" signal for two or three character times

You're being excessively literal. You don't send a break over the network...
you send the control sequence over the network that tells tip to send a
break over the serial line.

This is documented in the tip manpage.

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

Will Renkel

unread,
Jan 10, 2010, 9:19:11 AM1/10/10
to
drki...@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@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.

---------------------------------------------------------------

David Kirkby

unread,
Jan 11, 2010, 12:44:27 AM1/11/10
to
On Jan 10, 2:19 pm, nob...@nowhere.invalid (Will Renkel) wrote:
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

Greg Andrews

unread,
Jan 12, 2010, 8:15:33 PM1/12/10
to
David Kirkby <drki...@gmail.com> writes:
>
>Ultra 27 $ ssh drkirkby@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.

Greg Andrews

unread,
Jan 12, 2010, 8:20:27 PM1/12/10
to
nob...@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.

David Kirkby

unread,
Jan 14, 2010, 12:38:56 AM1/14/10
to
On Jan 13, 1:15 am, g...@panix.com (Greg Andrews) wrote:

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.

hume.sp...@bofh.ca

unread,
Jan 14, 2010, 6:40:41 PM1/14/10
to
David Kirkby <drki...@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.

0 new messages