expect
Find does not work in Expect Send command
I run this bash command to display contents ofsomefile.cf in a Weblogic domain directory. find $(/usr/ucb/ps auwwx | grep weblogic | tr \' \' \'\\n\' | grep security.policy | grep domain | awk -F\'=\[详细]
2022-12-23 19:26 分类:问答Sed does not work in expect
I made this bash one-liner which I use to list Weblogic instances running along with their full paths.This works well when I run it from the shell.[详细]
2022-12-23 00:20 分类:问答bash command to repeatedly emulate keypress on a proceess
The nmap开发者_开发问答 tool has such a feature - when you\'re performing a scan [#nmap -A -T4 localhost] and press \"Enter\" - it displays kind of status information \"Timing: About 6.17% done\"[详细]
2022-12-21 06:59 分类:问答how to use a shell script to supply a password when the interface asks for it
I have a script(dobrt) which upon executing asks for a password.How can i write a script which executes dobrt and automatically supplies the password it asks for.[详细]
2022-12-20 07:34 分类:问答ncurses - expect: sleep executes at wrong time
I have some ncurses apps that I need to automate to test repeatedly. I am placing the \"sleep\" command between \"send\" commands. However, what i see is that all the开发者_高级运维 sleep\'s are execu[详细]
2022-12-19 18:13 分类:问答cygwin's expect doesn't work with net use?
I need to automate the \'net use\' command on cygwin. The command is \'net use /user:\"name\" \\somewhere\'. And \'Enter the password for \'name\' to connect to \'prosseek\':\' is expected to enter t[详细]
2022-12-19 15:22 分类:问答Expect-like tool for binary protocol testing
I\'d like to write tests for a simple byte-oriented protocol using something like Expect. The test scripts would look like a plain stream o开发者_运维问答f:[详细]
2022-12-17 03:37 分类:问答How can I match a pattern over TCP?
I\'m trying to write a monitoring script. It should connect to some port on my server, read the output, and if the output is the expected value, print 1 otherwise 0.[详细]
2022-12-16 23:56 分类:问答How do you save and parse a command output in Expect?
I am half-way through writing an Expect script on a Linux server which is supposed to telnet to a router in order to collect some system information. So far my script can succe开发者_JAVA技巧ssfully m[详细]
2022-12-16 09:44 分类:问答(Tcl/Expect) clear screen after exit
I want to clear the screen (on the local machine) after exiting from my (semi) interactive expect script. Can I do that from within the script?Here\'s what I tried, that failed.[详细]
2022-12-15 09:08 分类:问答