Hi :
I am trying to run Expect scripts to interact with mysql. So far I cannot get it to
work here is the list of log I got.Does anyone know how to interact Expect scripts
with mysql. What am I missing ?
Thanks
spawn mysql
parent: waiting for sync byte
parent: telling child to go ahead
parent: now unsynchronized from child
spawn: returns {2004}
expect: does "" (spawn_id 5) match glob pattern "*mysql>*"? no
expect: timed out
send: sending "show databases;\r" to { 5 }
expect: does "" (spawn_id 5) match glob pattern "*mysql>*"? no
show databases;
expect: does "show databases;\r\n" (spawn_id 5) match glob pattern "*mysql>*"? no
expect: timed out
send: sending "use menagerie;\r" to { 5 }
expect: does "show databases;\r\n" (spawn_id 5) match glob pattern "*mysql>*"? no
use menagerie;
expect: does "show databases;\r\nuse menagerie;\r\n" (spawn_id 5) match glob pattern
"*mysql>*"? no
expect: timed out
send: sending "show tables;\r" to { 5 }
expect: does "show databases;\r\nuse menagerie;\r\n" (spawn_id 5) match glob pattern
"*mysql>*"? no
show tables;
expect: does "show databases;\r\nuse menagerie;\r\nshow tables;\r\n" (spawn_id 5)
match glob pattern "*mysql>*"? no
expect: timed out
expect: timed out
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php