Comments (1)
This is more of a python/unix question & not really related to the iridium-toolkit.
Most programs on unix behave specially when their output is a terminal - Terminal output is usually "line buffered" i.e. the output is flushed/printed at each newline. Whereas for pipes you have the some (larger) standard buffer. On Linux it is about 64k bytes these days, i think.
So while piping there needs to be a larger amount of output before it is "flushed" and sent to the next program.
So your pipe should work as it is, but will only send output to udp-for-il.py
in larger batches, which may - depending on the amount of traffic you see - take quite some time.
Different programs on unix have command line options to address this issue. For example for grep
it is:
--line-buffered
Use line buffering on output. This can cause a performance penalty.
For python one can use the -u
option as shown in man python
:
-u Force the stdout and stderr streams to be unbuffered. This option has no effect on the stdin stream.
so your pipe would need to look like .... | python -u reassember.py -m sbd | udp-for-il.py
Technically, the same issue happens with iridium-parser.py
in your pipeline, but as that one produces far more output, it is less noticable.
from iridium-toolkit.
Related Issues (20)
- Error ratio: nan HOT 3
- What coordinate system is the decoded position information belong to? HOT 1
- parsing out ADS-B data HOT 4
- IndexError: string index out of range HOT 3
- gsm downlink 951.4 Mhz can not be parsed with hackrfone HOT 5
- play-iridium-ambe: not found HOT 2
- Legacy extractor question HOT 1
- Error while running update-tracking HOT 2
- IRA:Whether staID and location information are in dqpsk? HOT 1
- Iridium DTCS PTT HOT 1
- the precision of gps position is not so good...
- the precision of gps position is not so good... HOT 2
- Information about IRA tracks HOT 10
- livemap.py misses some satellites with q.alt test HOT 2
- Position HOT 1
- tracking satellites HOT 1
- rudics & direct internet & dial up HOT 1
- PPP, DIAL UP, DIRECT INTERNET, RUDICS HOT 1
- Issue with Parsing output.bits HOT 2
- ambe codec not found HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iridium-toolkit.