Hi,
I'm a rookie trying to learn expect
I have a question:
If I want my expect script to handle two processes at a time but in two different terminals how do I do that? I have tried by having the first process executing in the same terminal as I started the script and the second to work in a new terminal by spawning a new terminal and then saving the spawn_id. But when I want to send to this process I had no luck. This what was I was trying to test:
---------
spawn dtterm -geometry 80x40+63+13 -title test -fg green -bg black
send "ls\r"
---------
The 'ls' command was never executed in the new terminal...
Can anyone give a quick example that works involving a new terminal and sending messages to both processes?
Regards,
Mathias
I'm a rookie trying to learn expect
I have a question:
If I want my expect script to handle two processes at a time but in two different terminals how do I do that? I have tried by having the first process executing in the same terminal as I started the script and the second to work in a new terminal by spawning a new terminal and then saving the spawn_id. But when I want to send to this process I had no luck. This what was I was trying to test:
---------
spawn dtterm -geometry 80x40+63+13 -title test -fg green -bg black
send "ls\r"
---------
The 'ls' command was never executed in the new terminal...
Can anyone give a quick example that works involving a new terminal and sending messages to both processes?
Regards,
Mathias