09-07-2018 04:58 AM - edited 03-08-2019 04:06 PM
Hello everybody,
I have a problem with my cisco-copy-script that I have created in Notepad++ and is running on PUTTY.
The copy-script is running good so far... but I have one problem left:
For every device "putty" wants me to confirm the copy with the "return"-Button 2 times.
I have tried several things like /f /cr /n "confirm" (in an extra line), but that does not work.
It always says things like "invalid command".
As I have to do the copy job on a regular basis and for almost 100 devices,
it would be awesome to know, how I can implement this 2 confirmations (return-button) in the Putty Copy Script.
Really need some with this issue as it drives me crazy.
I´m grateful for any kind of help/advide.
best regards
Solved! Go to Solution.
09-11-2018 02:38 AM
As I got back to the origin version I found the solution.
Thank you anyways 100 for your help @Georg Pauwen
"echo y | PLINK.EXE -ssh %User%@%1 -pw %PW% copy tftp://file.dat f >> FileLog.txt"
09-07-2018 06:53 AM
Hello,
is this a Python script ? Can you post the script ?
09-10-2018 03:38 AM
Hello George,
thank you for the fast reply.
this is the part of the copy-script. The spots of the 2 confirmations are marked below:
.....................................
REM ##### set UserID and PW for Plink
Set User=xxxx
Set PW=xxxx
REM ### set entrys via Plink
putty.exe -ssh %User%@%1 -pw %PW% copy.tftp-COMMAND
??? return-button/confirm/ ???
??? return-button/confirm/ ???
REM ### write info log-file
..................
09-11-2018 01:26 AM
Hello,
not sure if your version supports the -m switch, which assumes a non-interactive terminal:
putty.exe -ssh -m %User%@%1 -pw %PW% copy.tftp-COMMAND
09-11-2018 02:38 AM
As I got back to the origin version I found the solution.
Thank you anyways 100 for your help @Georg Pauwen
"echo y | PLINK.EXE -ssh %User%@%1 -pw %PW% copy tftp://file.dat f >> FileLog.txt"
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide