I want to make a program with bash script, that can check if there is a string data from specific port in my machine. Can you help me with this programming? thanks... *sorry for my bad english
example: *my machine port 7090, and if there is a string data receive in that port then execute a line of bash program else execute another program
if(there is a string data in port)
{
read data from that port
}
else
{
print data to another port
}
How to make bash script to check "there is a string data in port"?