SCP in CLI script
Posted: 04 Dec 2015 16:27
Hi,
I'm trying to use a CLI script to export a file via SCP. The script uses the scp command, and then enters the password when prompted. It contains lines akin to:
However, since the password prompt isn't the standard user prompt (it's literally just "Password:", instead of "devicename#"), the script won't drop in the "mypassword" line. Is there any way to get this working?
I'm trying to use a CLI script to export a file via SCP. The script uses the scp command, and then enters the password when prompted. It contains lines akin to:
Code: Select all
scp filename.dat user@location
mypassword