How to use Perl Expect

http://search.cpan.org/~rgiersig/Expect-1.15/Expect.pod#How_to_automate_login

 

http://parthpatil.com/2008/05/02/using-perl-expect-to-automate-sftp-access/

 

http://stackoverflow.com/questions/10135032/using-expect-to-loop-over-output-and-send-to-file?rq=1

i am trying to use expect to log into an appliance, fetch the config, and write it to a file (i can’t use ssh keys, appliance doesn’t support it, and the thing actually has two logins).

the problem is when i use this, the data is truncated (i only get the last ~100 lines of the config file):

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s