how to stty another terminal?

David N. Sears dns at essnj1.ESSNJAY.COM
Sun Dec 9 01:43:42 AEST 1990


In <1990Dec07.055142.11132 at eecs.wsu.edu> rnelson at eecs.wsu.edu (Roger Nelson - Grad Student) writes:

>------

>How to you stty a terminal line that you are not currently connected to.

>Specifically I have written a small C shell script that prints to a local
>printer connected to a terminal (even if you are not logged in with that
>terminal).  This works fine (NL is mapped to CR LF) as long as someone is
>logged in with the terminal.  When no one is logged in with the terminal, 
>NL is only mapped to LF.

>So what I would like to do is specify the device, something like:

>     stty -d ttyd4 onlcr

Yep -- to do what you want type

stty onlcr </dev/ttyd4

You must use the full path name because the shell has to do the open
for stty.

David Sears
EssnJay Systems, Inc.
Huntington, CT



More information about the Comp.unix.questions mailing list