Is it possible to call an Expect script from Perl by passing an array as a parameter? If so, how to retrieve that array in Expect like we retrieve non-array data as:
I\'m trying to automate the interaction with a remote device over telnet using expect. At some point device generates ou开发者_StackOverflowtput like this:
This question has been asked more than once before, but I have not found a satisfactory answer in any of those discussions.
I have a following script for executing commands on a remote device over ssh: #!/usr/bin/expect -f set cmd $argv
I am using the following code #!/usr/bin/expect -f #!usr/bin/expect #package require Expect puts \"Hello world\"
Whenever I try to run the script it doesn\'t show me any result on standard output. #!/usr/bin/expect --
I know about RSA authentication, but for my purposes I want to use a heredoc to specify the password.I want something like the following, but I can\'t get it to work.Is this even possible?
I just wrote a very simple Expect script for wrapping around rsync, but it seems to be giving me trouble.Basically, I am automating the SSH login prompt called from rsync.I also have to pass arguments
It works great when I use expect interactively like this: root@vagrantup:/home/vagrant> expect -i expect1.1> spawn screen -x
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.