I\'ve been trying to capture the result of grep, logging into a remote machine, using ssl in Expect command.
I\'m aware of libexpect,开发者_StackOverflow but its source is huge and requires tcl. I was hoping for something just as small as ruby\'s \'expect.rb\' which is a tiny file. Any ideas?Solved it. I had
This is my script echo \"Name:\" read name if [ \"$name\" == \"abcd\" ]; then echo \"correct username\" echo \"Password:\"
How can we copy the files recursively to the remote server using expect script or any other script?. Constraints.
This is my hello.sh shell script VALID_NAME=\"abcd\" e开发者_开发百科cho \"Name: \" read name if [ \"$name\" == $VALID_NAME ]; then
I am using ex开发者_开发问答pect within bash. I want my script to telnet into a box, expect a prompt, send a command. If there is a different prompt now, it has to proceed or else it has to send that
I\'m writing my first expect script, so I may be missing something obvious, but I find the following quite puzzling:
I want to telnet into a Cisco router, login and execute a Tcl script that is locally stored in the router\'s flash. This Tcl script does some proce开发者_运维问答ssing and should return a nested hash
Here is the story. I have a Debian 5 server automatically starting into a local user account. The local user account has the following .profile
I wrote a Bash script with Expect within, to connect to a terminal server and clear lines. I am unable to figure out the error I am getting, as in I have given all the braces necessary. I also do not