Arduino Trigger

Arduino #1 on one computer would have to be connected to Arduino #2 on the other computer and digital I/O communication would have to be added to each Arduino code. I would try to use the smallest micro controller possible.

This is a simple outline.

Computer #1

int pinA = 3;
.
.
.
pinMode(pinA,OUTPUT);
.
.
.
digitalWrite(pinA,High);
trigger device

Computer #2

int pinB = 4
.
.
.
pinMode(pinB,INPUT);
.
.
.
val = digitalRead(pinB);
.
.
.
if (val >0)
{
trigger device}
.
.
.