Finally!! CTL-S works on SCO

Evan B. Ross evan at dmr.com
Sat Apr 20 06:33:35 AEST 1991


After much tooth pulling, hair tugging, and bickering with SCO Technical
support, I've finally found a way to make SCO's rlogin and telnet pass
Ctl-S transparently to the remote host.

SCO not only said that this was impossible, they said it was designed to be
that way!! (read the rfc's guys!)

The problem is caused by rlogin and telnet diddling with the stty parameters
once they've been invoked. So I (with help from my colleagues) wrote several
very simple scripts that do the following:

	Learn the ID of the job's tty (or pty)
	Spawn a script in the background that sleeps for 5 seconds,
	  and then changes the tty characteristics.
	Opens an rlogin connection.

This requires three files, the main script, the child script, and a tiny awk
program.

The main script (which I've called sco_rlogin) is:

--
	mytty=`ps | awk -f /usr/local/scobin/ptty.awk`
	/usr/local/scobin/ptty.stty $mytty &
	rlogin $1
--

The child script (ptty.stty) is:

--

	sleep 5 ; stty -ixon -ixoff -ixany <$1

--

And the awk program is:

--
	{
	if(NR==2)
		printf("/dev/tty%s\n",$2)
	}
--

Well, there you have it. I'm sure it could be simplified (putting the awk
program in-line, for instance), but it works as is.

So far in my battle with SCO the score is about Me: 7, SCO: 1.




-- 
  There's sparks a comin' outa' my head!!!

	Evan B. Ross		evan at dmr.com
	DMR, Wellesley MA



More information about the Comp.unix.sysv386 mailing list