Path: utzoo!attcan!uunet!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!eru!luth!sunic!tut!santra!hemuli.tik.vtt.fi!tml From: tml@hemuli.tik.vtt.fi (Tor Lillqvist) Newsgroups: comp.sys.hp Subject: Re: rn and rrn Message-ID: <4516@hemuli.tik.vtt.fi> Date: 14 Feb 90 10:31:12 GMT References: Organization: Technical Research Centre of Finland, Laboratory for Information Processing (VTT/TIK) Lines: 73 In article sukmi@cs.psu.edu (Sukmi Lim) writes: >Could anyone tell me the difference between rn and rrn? rn reads news from the local machine, rrn uses the NNTP protocol to a remote news server machine. >I am in the middle of compiling rn on HP9000 series 300 running on HP-UX 6.5, >and rn runs in cbreak mode. It says it means you dont have to type carriage >return on single character commands. >HP-UX didnt define CBREAK in ioctl.h, so I looked at BSD Unix machine and >defined CBREAK as it was on sun. I compiled the whole thing and was ready >to run rn. This is the wrong thing to do. Rn uses the termio(7) style ioctls just fine. The only catch is that the latest patchlevel of rn (pl 44, which I assume you are using) has a bug in the Configure script, where it tries to figure out whether to use termio ioctls or stty/gtty. Apply the patch below. (The bug (IMHO) is in the use of test at line 1284. "test something" doesn't run "something" and check its exit status, it checks that "something" is a nonempty string...) *** orig/Configure Tue Dec 19 18:49:28 1989 --- Configure Tue Dec 19 19:38:35 1989 *************** *** 477,482 **** --- 477,501 ---- fi fi + : check for hp-ux + cat <<'EOT' >hp-ux.c + #ifdef hpux + exit 0 + #else + exit 1 + #endif + EOT + $cpp hp-ux.c | grep exit >hp-ux + chmod 755 hp-ux + rm hp-ux.c + if hp-ux; then + echo "Running hp-ux, eh?" + if grep 'void[ ]*(\*signal' /usr/include/sys/signal.h >/dev/null; then + echo "And you seem to be running a recent version." + voidsig=define + fi + fi + : see if sh knows # comments echo " " echo "Checking your sh to see if it knows about # comments..." *************** *** 1281,1287 **** fi : see if this is a termio system ! if $test -r /usr/include/termio.h -a ! ultrix -a ! sun ; then termio=define $echo "termio.h found." else --- 1300,1306 ---- fi : see if this is a termio system ! if $test -r /usr/include/termio.h -a "`cat ultrix`" = 'exit 1' -a "`cat sun`" = 'exit 1' ; then termio=define $echo "termio.h found." else -- Tor Lillqvist, working, but not speaking, for the Technical Research Centre of Finland