Search code examples
filecommand-lineexpectnotepad

how to write to a file with Expect and send


How do you write to a file using expect, then open in with notepad? I receive results to my command line and I would like to print these results in notepad. Basically an automatic way to get the same result as typing "example.log" into the command line


Solution

  • You cannot control a GUI application with expect. You might need something like TWAPI or TCOM