https://stackoverflow.com/questions/17026972
Question
How do you use Expect to start a program? I want to have Expect open notepad at the end of my script. How might I do this?
Solution
How about
exec {*}[auto_execok notepad] $filename &
tcl wiki