Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!hsi!essnj1!dns From: dns@essnj1.ESSNJAY.COM (David N. Sears) Newsgroups: comp.unix.questions Subject: Re: how to stty another terminal? Message-ID: <779@essnj1.ESSNJAY.COM> Date: 8 Dec 90 14:43:42 GMT References: <1990Dec07.055142.11132@eecs.wsu.edu> Organization: ESSNJAY Systems Inc., Bethany, CT, USA Lines: 26 In <1990Dec07.055142.11132@eecs.wsu.edu> rnelson@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