How to hide login messages ?

Hi,

I intend to hide messages that appear when I login through telnet like:

Entering character mode
Escape character is '^]'.

Please let me know how to do it ?

Thanks

I don't see a way in my version. They're not login messages -- they're generated by the telnet binary itself, and printed to stdout, not stderr.

Perhaps telnet isn't the right tool for the job? If you're trying to script anything, netcat(nc) will save you lots of headaches over telnet because it never pretends to be a terminal... It just sends everything it has to send, receives until the other end closes, then quits. For instance:

$ echo "GET /" | nc yahoo.com 80
<!DOCTYPE html>
<html lang="en-US" class="y-fp-bg y-fp-pg-grad  bkt701">
<!-- m2 template 0 -->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    <title>Yahoo!</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="description" content="...">
    <meta name="keywords" content="...">
...
</html>
<!-- bid=701 -->
<!-- sid=2023538075 -->

<!-- myproperty:myservice-us:0:Success -->
<!-- w24.fp.sp2.yahoo.com uncompressed/chunked Wed Feb 16 09:33:25 PST 2011 -->
$

Thanks. Seems have to live with it.