popen to push to stdin