Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Apr 2005 09:57:36 +0100
From:      Alex Zbyslaw <xfb52@dial.pipex.com>
To:        shibbsd@spymac.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: netcat strange behaviour
Message-ID:  <426F5400.8050405@dial.pipex.com>
In-Reply-To: <20050426080555.26F534C05C@webmail2.spymac.net>
References:  <20050426080555.26F534C05C@webmail2.spymac.net>

next in thread | previous in thread | raw e-mail | index | archive | help
shibbsd@spymac.com wrote:

>I just wanted to connect to a POP3 server, authenticate and grab the STAT
>information, so
>I issued the following command:
>
>printf "USER XXX\nPASS XXX\nSTAT\nQUIT\n" | nc -i 1 <mypopserver> 110
>
>And what I got on stdout was:
>
>+OK <greeting string>
>+OK
>+OK
>  
>
I tried it on my pop server and got

+OK
+OK
+OK
+OK 14 15121
+OK

Why don't you try the old-fashioned "telnet <mypopserver> 110" and type 
the commands by hand and see what you get.

--Alex



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?426F5400.8050405>