save executable output to file