popen to call conversion