public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Haar János" <djani22@netcenter.hu>
To: <hpa@zytor.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: How to send a break?
Date: Mon, 29 May 2006 09:51:56 +0200	[thread overview]
Message-ID: <00cb01c682f4$c307d7a0$1800a8c0@dcccs> (raw)


"H. Peter Anvin" <hpa@zytor.com> az alábbiakat írta a következo üzenetben
news:e5dacu$v33$1@terminus.zytor.com...
> Followup to:  <01b701c6818d$4bcd37b0$1800a8c0@dcccs>
> By author:    =?iso-8859-2?Q?Haar_J=E1nos?= <djani22@netcenter.hu>
> In newsgroup: linux.dev.kernel
> >
> > Hello, list,
> >
> > I wish to know, how to send a "BREAK" to trigger the sysreq functions on
the
> > serial line, using echo.
> >
> > I mean like this:
> >
> > #!/bin/bash
> > echo "?BREAK?" >/dev/ttyS0
> > sleep 2
> > echo "m" >/dev/ttyS0
> >
>
> You can't use it using echo, however, you can do it using Perl:
>
> perl -e 'use POSIX; tcsendbreak(1,0);' > /dev/ttyS0

Ahh, thats what i am waiting for, thanks! :-)

Works fine!

Thanks,
Janos




>
> -hpa
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/


             reply	other threads:[~2006-05-29  7:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-29  7:51 Haar János [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-05-27 12:58 How to send a break? Haar János
2006-05-27 23:43 ` Jim Crilly
2006-05-28 23:06 ` H. Peter Anvin
2006-05-29 15:08 ` linux-os (Dick Johnson)
2006-05-29 15:35   ` Valdis.Kletnieks
2006-05-29 17:32     ` Haar János

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='00cb01c682f4$c307d7a0$1800a8c0@dcccs' \
    --to=djani22@netcenter.hu \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox