I have a reverse-connect binary that connects back to my server on a port, let's say 2020. Because of how things work, I need to be able to monitor this port for the connecting binary, and if it occurs, i.e., the port becomes "active" send commands to the screen as if typed on the server's keyboard (I think you would call that stdin or is it stdout?).

Anyway, the binary cannot be changed, it is hard-coded to connect back to this port and this port alone. Anyone have an idea on how I can do this through an existing BT4 program or otherwise?

Thanks.