Bash script with expect -
i have simplest script ever:
#!/usr/bin/expect expect "hello" send -- "ll \r"
when run it, manually type "hello" word , ll command never runs ...
afterwards put exp_internal 1
, comes up
[root@localhost tmp]# ./file1.exp expect: "" (spawn_id exp0) match glob pattern "hello"? no hello expect: "hello\n" (spawn_id exp0) match glob pattern "hello"? yes expect: set expect_out(0,string) "hello" expect: set expect_out(spawn_id) "exp0" expect: set expect_out(buffer) "hello" }end: sending "ll \r" { exp0 ll [root@localhost tmp]#
can explains me why command not being ran command ?
Comments
Post a Comment