Direct write to device instead of use shell exec