![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: How to clear named pipe to just have one lineby techman2006 (Beadle) |
on Feb 08, 2014 at 13:22 UTC ( #1074010=note: print w/replies, xml ) | Need Help?? |
Basically there are two unrelated processes say P1 (A C program) and P2(a Perl script). Now P2 is running and is output some data to stdout. Now P1 will come at regular interval to read such data. As these are unrelated processes. So I was thinking to use named pipe. Now process P1 want to read only one line which is output from process P2. As it continuously generates output we want to truncate the data so that process P1 don't read redundant data. Any thoughts how to solve this problem.
In Section
Seekers of Perl Wisdom
|
|