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?

Was it helpful?

Solution

How about

exec {*}[auto_execok notepad] $filename &

tcl wiki

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