I’m using telnet to get data from a remote server.
If I run the command
telnet ente.hawo.stw.uni-erlangen.de 7337
from the terminal it works as expected and responds:
Trying 131.188.24.11…
Connected to ente.hawo.stw.uni-erlangen.de.
Escape character is ‘^]’.
4.55°C (4.98°C Ostseite / 4.55°C Westseite)Connection closed by foreign host.
If I run the same command as cron job and record the output to a logfile the response is quite different.
The output changes to
Trying 131.188.24.11…
Connected to ente.hawo.stw.uni-erlangen.de.
Escape character is ‘^]’.
Escape character is ‘^]’.
Escape character is ‘^]’.
Escape character is ‘^]’.
The most important part is missing: the expeced response of the server.
Any ideas about this?