Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!udel!rochester!pt.cs.cmu.edu!g.gp.cs.cmu.edu!tgl From: tgl@g.gp.cs.cmu.edu (Tom Lane) Newsgroups: comp.sys.hp Subject: Re: Can I make cu(1) dumber? Message-ID: <11087@pt.cs.cmu.edu> Date: 13 Nov 90 21:00:33 GMT References: <11061@pt.cs.cmu.edu> <15520020@hpdmd48.boi.hp.com> Organization: Carnegie-Mellon University, CS/RI Lines: 44 In article <15520020@hpdmd48.boi.hp.com>, alien@hpdmd48.boi.hp.com (Tom von Alten) responds to my earlier complaint: > > 1. cu insists on swallowing any ^S or ^Q that I type. > > ~%nostop > will make it ignore DC1/DC3 control characters (i.e. ^S & ^Q). That works, but there doesn't seem to be any way to invoke it automatically, i.e., without my having to type it by hand. I normally fire up cu from a small shell script, and I'd be happy if I could get the nostop mode set within the script. A command line switch would be nice... > > 2. If a line arriving from the remote end starts with ~, the cu > > input process takes it as a command, which is never what I want. > > This usually results in cu becoming hung. > > Hmmm, this "shouldn't happen," since it's the transmit > process that is supposed to react to ~'s. Sorry, I shoulda checked more carefully before posting. The receive process only responds to lines beginning "~>", which cause it to redirect incoming data to a file. (The man page implies that any line beginning with ~ is read as a command, but experimentation proves this false.) I've had this happen once or twice after mistakenly "cat"ing a binary file. Unless you are lucky enough to get another line starting with ~> from the remote end, you are pretty much stuck. (Well, you can say "echo '~>'" if you have the presence of mind to type it blind...) Not only is this a misfeature, it's a major security hole. People have built trojan-horse email and netnews posts with less. The fact that cu is setuid root doesn't make me feel any better about it, either. (Whyinhell does it have to be setuid root, anyway? And yes, I know that it downgrades itself after startup.) -- tom lane Internet: tgl@cs.cmu.edu UUCP: !cs.cmu.edu!tgl BITNET: tgl%cs.cmu.edu@cmuccvma CompuServe: >internet:tgl@cs.cmu.edu