synchronous write in prexec connection