Sponsored Content
Top Forums Shell Programming and Scripting Continuous nc data acquisition fails ocassionally Post 303017852 by lanas1234 on Wednesday 23rd of May 2018 12:35:58 PM
Old 05-23-2018
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:

Code:
!AIVDM,1,1,,A,13FPE?PP08OG@cPH:Gi8OwwB0<0h,0*06

!AIVDM,1,1,,A,13Ebj60000wH2E:H:mKIF2GB2<17,0*49

!AIVDM,1,1,,B,4028nAAv9Kh0awESU0HRIP102D3f,0*5D

I'm using the following sentence to adquire that data| add a timestamp and remove the blank line| separate in 1MegaByte files:

Code:
nc -ul -p 56045 -q -1 -vv | awk -F: 'NF > 1 {print strftime("%d-%m-%Y %H:%M:%S"),$0  }'| split -d -a3 -C 1M --additional-suffix=`date +_AIVDM_%F_%H%M%S`.txt - aivdm/ &

It seems to work but after a period of 5-8 hours the splited text files stop to increase their size and content, and I can't get more data till I kill the processes. When the adquisitions stops I get no error on screen and the processes appear if I call ps.

Any idea of what may be happening?

All the best
 

5 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Need info regarding CDP - continuous data protection

HI frnds, i am going to work on CDP(continuous data protection),does any one of them have any idea reg CDP ... any docs or Links...might be helpful to me in understanding it.... (1 Reply)
Discussion started by: deep
1 Replies

2. Shell Programming and Scripting

Continuous checking of a file

I have a requirement like this... I want to go to a particular server for which i have acess .I want to do a ssh to that server from one server and check if a file is theer or not..and i need the script to chcek continuosly till it finds the file.When it finds the file i want it to come out... (9 Replies)
Discussion started by: kanta_bhakti
9 Replies

3. UNIX for Dummies Questions & Answers

Extracting data between continuous non empty xml tags

Hi, I need help in extracting only the phone numbers between the continuous non empty xml tags in unix. I searched through a lot of forum but i did not get exact result for my query. Please help Given below is the sample pipe delimited file. I have a lot of tags before and after... (6 Replies)
Discussion started by: zen01234
6 Replies

4. Shell Programming and Scripting

Continuous Copying from a directory to another.

Hello Folks, Looking for a script, where i can check for the existing of the files in a directory and copying to another. How can i achieve it in loop for over period of time. whatever files comes into the folder copied in another without duplicate and should be continuous loop. ... (8 Replies)
Discussion started by: sadique.manzar
8 Replies

5. UNIX for Beginners Questions & Answers

Continuous for loop

Hi All, Please help ***************** a=100 and run for loop that will minus 30 from 100 an will display value run loop will run till display value will be 0 ***************** Thanking you (1 Reply)
Discussion started by: Praful Pednekar
1 Replies
JACK.UDP(1)															       JACK.UDP(1)

NAME
jack.udp - JACK UDP Transport Client SYNOPSIS
jack.udp [options] send|recv OPTIONS
-b : Set the ring buffer size in frames (default=4096). -c : Set the client name (default=jack.udp-PID). -n : Set the number of channels, and therefore the number of JACK ports (default=2). -p : Set the port number (default=57160). -r : The remote host name, for use in send mode (default="127.0.0.1"). DESCRIPTION
jack.udp is a UDP audio transport mechansim for JACK. The send mode reads signals from a set of JACK input ports and sends UDP packets to the indicated port at the indicated host at a rate determined by the local JACK daemon. The recv mode reads incoming packets at the indi- cated port and writes the incoming data to a set of JACK output ports at a rate that is determined by the local JACK daemon. This transport mechanism is unreliable. Both send and recv clients will report buffer overflow and underflow occurences, and recv clients will report dropped and out-of-order packets, and shutdown on channel mismatch packets. In practice this mechanism can be made highly reli- able over local networks. jack.udp implements no connection logic, use jack.plumbing(1) instead. EXAMPLE
192.0.0.1:~$ jack.udp -r 192.0.0.2 send 192.0.0.2:~$ jack.udp recv AUTHOR
Rohan Drape http://slavepianos.org/rd/ SEE ALSO
jackd(1) AUTHOR
Rohan Drape <rd@slavepianos.org> Author. 01/10/2012 JACK.UDP(1)
All times are GMT -4. The time now is 10:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy