expect
Expect command output to be stored in a variable
I have written below script . #! /usr/bin/expect set timeout 180 spawn /vobs/iov/rnc/bin/moshell/moshell -d db.dat[详细]
2023-01-08 00:45 分类:问答Using Expect to administer machines via SSH, but does not complete all tasks
*Please do not pile on and tell me to just use 开发者_StackOverflowSSH keys.If it bugs you that this is the way I am doing it, pretend that I am trying to telnet in instead.:-) *[详细]
2023-01-06 17:31 分类:问答exit expect {} without timeout
I am struggling with the classic problem of typing password automatically in ssh, and like everybody else I am stumbling in the dark regarding expect. Finally I cobbled together a script that kinda w[详细]
2023-01-05 14:55 分类:问答Perl expect - how to control timeout on target machine
I am a newbie to perl. I am using perl expect module to spawn to a remote system. Execute a set of commands there one after another using the send module(like $exp->send(\"my command as string goes he[详细]
2023-01-05 04:31 分类:问答In Tcl, seg faults from multiple threads requiring Expect
Now here\'s something interesting. When I have more than one thread in Tcl invoking package require Expect, I get a seg fault.[详细]
2023-01-04 16:09 分类:问答How can I automatically control a terminal?
I\'m using 20 identical simulators (text base GUI like vi, refreshed quickly), and I need to control them in very similar way. e.g. input some command string to start/stop/config the simulator. The di[详细]
2023-01-04 09:08 分类:问答How to get Command history by cursor key in Linux tclsh
Can get the command history by using cursor key (like up arrow key)开发者_高级运维 in TCL shell (tclsh).[详细]
2023-01-03 05:56 分类:问答how to hide ssh expect user/password
My Expect script shows password/user in clear text and I want to hide it. #!/usr/local/bin/expect ##################################################################################开发者_运维技巧####[详细]
2023-01-02 19:40 分类:问答How to install wexpect?
I\'m running 32-bit Windows XP and trying to have Matlab communicate with Cgate, a command line program.I\'d like to make this happen using wexpect, which is a port of Python\'s module pexpect to Wind[详细]
2022-12-26 19:38 分类:问答No module named win32console, while running wexpect
I want to run wexpect (the windows port of pexpect) on my Windows 7 64-bit machine. I am getting the following error:[详细]
2022-12-25 14:18 分类:问答