A
A
Antuan19792020-06-14 19:42:01
Task Schedulers
Antuan1979, 2020-06-14 19:42:01

telnet + cron problem?

Good afternoon!
There is a thermometer (small meteo). Wrote the script telnet -4 192.168.1.2 23 >> /scripts/data1. When I run the script manually everything works great.

Escape character is '^]'.
Trying 192.168.1.2...
Connected to 192.168.1.2.
Escape character is '^]'.
Socket1  
31.2 gC
27 %

Socket3  
1017 Hpa
763 mmHg

But if I run it via cron, I get the following:
Trying 192.168.1.2...
Connected to 192.168.1.2.
Escape character is '^]'.

What could be the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question