Put expect script to file