Dynamic port assignment to exec program