I am wanting to use expect to automate the copying of files from one system to another with scp, the secure copy command. Below is the syntax of my scp command:
% scp username@host_a:filename filename
This then gives me the following prompt:
I want to use expect to automate the entering of the password, but I can't figure out how to do this. I'm aware of some security flaws with this approach and am taking some measures to reduce the risks. Below is the expect script I have written so far:
set timeout 3600
spawn /usr/local/SSH/bin/scp user@server1:setEnv.sh /tmp/setEnv.sh
My understanding of expect is quite rudimentary, but I am hoping to be able to work this out. A correction to this script, or a very similar script which leads me to the solution would be great.
Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.
Dialogs (1) modal - maintaining the database.
Continuing from the ninth article about sudoku.
You might have heard of modal and modeless dialogs. Here with this Sudoku application will we use one of each type: a modal dialog …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard.
The reason is the 'save box mode' in adobe reader X.
Many people think the protected Mode of adobe reader x is only to stop the write access.
But this fe…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …