All Questions
3 questions
0
votes
1
answer
796
views
How can a client talk to another client using unix domain sockets?
Using bash we might have something like this with netcat:
nc -lk -U /my/fifo | while read line; do
# line => {"client_id":123}
done;
clients send data like this:
echo '{"client_id":123,"data":"...
3
votes
1
answer
106
views
Remote control alarm
I want one of machine have a remote control alarm running that can be triggered by any remote machine. More precisely
Machine A is running the service in the background
Any remote machine B can send a ...
3
votes
1
answer
7k
views
How to pass received data from netcat to another script as argument?
I have simple bash nc script:
#!/bin/bash
nc -k -l 127.0.0.1 4444 > filename.out
which listens 4444 port for TCP connection. Instead of redirecting received data to filename.out I would like, if ...