so I run this on bash:
What this command does, it just continues to work, and every time my device sends certain data, let's say it detects a temperature change, it displays something like this
/dev/xyz: 123 4567 8910112238 20 /dev/xyz: 123 4567 8915712347 19 /dev/xyz: 123 4567 8916412345 22 /dev/xyz: 123 4567 8910312342 25 /dev/xyz: 123 4567 8910112361 18 /dev/xyz: 123 4567 8910112343 20
And it just keeps working, and as soon as it has some reason, it outputs something. Thus, there is no end to execution.
No, the echo works fine, however, when I try to use the '>' operator, it doesn't look like writing to a file.
for example,
this does not work properly, my_record_file only gets the data written to it in intervals , however I want it to be written immediately.
Any ideas?
source share