Question

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top