Writing to external commands