Telnet output lost when piped

patricio.mora at patricio.mora at
Thu Mar 8 12:49:14 EST 2007

I have a script configured to be called through inetd, which echos a phrase
when telnet'ed. Everytime I put the line "telnet server port" to the right of
a pipe, and also when I call it from crontab., the echo doesn't appear. In a
terminal the command goes as expected. Through cron I see the usual
"Probing 10.244....
 Connected to ...
 Escape character is ...
 Connection closed by foreign host"
But no hint of my echo. I've played with TERMs types and redirections to no
result. Any ideas how to get the whole output?
Thanks in advance.

More information about the sunmanagers mailing list