linux - Processing Piped Data -
i've built proxy using nc , pipes. need process info coming through proxy , perform actions if conditions met. illustration if http response code 200 run script perhaps, info must not halted in transit. i'm limited in can use, hence using nc proxy. i'm piping out info in transit , reading background process, i'm struggling capture info correctly in background process able process though.
proxy:
nc -l -p 9090 <pipe.back | tee pipe.process | nc 127.0.0.2 9999 >pipe.back ideally foo.sh able process info , perform actions. looks this, i've tried number of things store info in variable etc nil working.
foo.sh:
tee <pipe.process any help much appreciated
linux pipe
No comments:
Post a Comment