Search Results

Search: Posts Made By: lanas1234
5,259
Posted By lanas1234
Thanks a lot to Corona and everybody! Corona...
Thanks a lot to Corona and everybody!

Corona I think your solution should work but the problem is that the sender is under a DHCP so the IP would change during time if a disconnection occurs for...
5,259
Posted By lanas1234
Dear Jim, your adding of tail -f is not...
Dear Jim,

your adding of tail -f is not working, the file its not created and nothing else happens..

Dear Peasant,

I can't try that in the server because I dont have that privilegies but I...
5,259
Posted By lanas1234
Thanks a lot Jim! I will try with tail then...
Thanks a lot Jim!

I will try with tail then and see what happens

About fflush(), I'm already using it inside my awk sentence do you mean that It better to avoid using it¿?

All the best
5,259
Posted By lanas1234
I know what is happening hopefully you can help...
I know what is happening hopefully you can help me now:

-Two times a day the receiver from where I'm getting the data stops sending for a couple of seconds due to an internal cron job.

-Because...
5,259
Posted By lanas1234
-I've realized that the script only stops and...
-I've realized that the script only stops and 5:05 and 17:05 so I thought that maybe was a cron job in the server but I could not fin anything. I tried the same in my local area network and the same...
5,259
Posted By lanas1234
Thanks Peasant, I will check screen What do...
Thanks Peasant, I will check screen

What do you mean by BSD nc variant?
The problem is a new issue, I mean is a new problem, I recently obtained this data stream and I want to save it...
5,259
Posted By lanas1234
It can be a problem of the ssh session? I...
It can be a problem of the ssh session?

I mean, if I do something like

AISdecode.sh
#!/bin/sh
#CONTINUOUS AIS DECODE TO PERIODICALLY JSON FILES
nc -ul -p 56045 -q -1 | awk -F: 'NF > 1 {print...
5,259
Posted By lanas1234
After testing chubler_XL suggestion: nc -ul -p...
After testing chubler_XL suggestion:
nc -ul -p 56045 -q -1 -vv | tee /tmp/pre-awk.dat | awk -F: 'NF > 1 {print strftime("%d-%m-%Y %H:%M:%S"),$0 }' | tee /tmp/pre-split.dat | split -d -a3 -C 1M...
5,259
Posted By lanas1234
Thank Chubler_XL i will try and tell you. ...
Thank Chubler_XL i will try and tell you.
Yesterday i tried a simpler:
nc -ul -p 56045 -q -1 -vv >data.txt
and there was no problem, so it seems that it has to be the awk or split sentence.
...
5,259
Posted By lanas1234
No, they are not. But if the sender ocassionally...
No, they are not. But if the sender ocassionally stops sending packets (this can happens), nc with -q -1 should listen and wait forever isn't?
5,259
Posted By lanas1234
Continuous nc data acquisition fails ocassionally
Hi,

I'm receiving text data on a server trough UDP packets.

The data are encoded messages separated by blank lines, like this:

!AIVDM,1,1,,A,13FPE?PP08OG@cPH:Gi8OwwB0<0h,0*06
...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 02:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy