Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!sdd.hp.com!elroy.jpl.nasa.gov!forsight!jato!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: Help with sockets and lpd Message-ID: <8334@jpl-devvax.JPL.NASA.GOV> Date: 8 Jun 90 18:40:31 GMT References: <1990Jun7.225250.29252@uvaarpa.Virginia.EDU> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 19 In article <1990Jun7.225250.29252@uvaarpa.Virginia.EDU> cdp@hertz.njit.edu writes: : : I am attempting to connect to the printer daemon which is on tcp port : 515 using sockets. The system we are running is Ultrix-32 V3.1 (Rev. 9) : System #7. The problem is the same even when I vary the $them : variable below. : : The message that comes back to me is: 'Malformed from address' : If I use the same structure to address the ftp port or telnet : port, I get the header info of that process back. The lpd should : respond with a 0 or something telling me ok (or is that my : misunderstanding :-) ). My guess (without access to the lpd source) is that lpd is requiring the port to be a privileged port, since lpq is setuid root. Running your script as root, it just sits there forever rather than returning the error, so I think that's what's going on. Larry