I want to get the output from a program in Linux, and I put this into a .sh file:
wine Blockland.exe ptlaaxobimwroe -dedicated -port 30100 > consoleLog.txt
It executed the program, but created a blank file. This command always works when directly executed in a Terminal window. So why isn't it printing the output to the file when in a .sh script?
expectby Don Libes, and that does all sorts of hacks.scriptsession.