i'm trying use expect script on windows xp machine automate command line menu based application.
the application loads menu saying 1.perform option#1 2.perform option#2 ... , waits user key in option, after further sub-menu loaded. following code i'm trying execute:
package require expect puts stdout "starting menu based cli application" spawn c:\documents , settings\administrator\desktop\pds\cserclcd puts stdout "spawn completed" expect -re "*.*(syntax is).*:.*" { puts stdout "received response ping" }
the expect part of code never going condition specified above , script exits, there wrong doing while calling spawn on application, please let me know. output follows:
c:\docume~1\admini~1\desktop>tclsh.exe test.tcl starting menu based cli application
Comments
Post a Comment