Use temporary file. Make sure ruby can actually be called from user direcotry"