Avatar of smovva1
smovva1
 asked on

SCP command with no password prompt

I have a perl script that has an SCP command. Its a script that needs to be run on many servers. In most of the servers, the keys are setup and it won't prompt for the password. But, there are few servers where the keys are not setup. On those servers, I don't want it to wait for the password. I want it to simply ignore the SCP and move on.
How can I force it to "timeout" and not prompt for the password.

Thanks
PerlLinuxShell Scripting

Avatar of undefined
Last Comment
smovva1

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
woolmilkporc

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
smovva1

ASKER
yep that works.
smovva1

ASKER
I've requested that this question be closed as follows:

Accepted answer: 0 points for smovva1's comment #38154318

for the following reason:

Very quick response
woolmilkporc

I think accepting your own. comment is not what you intended to do, because you said that my solution works.

I'll object to your close request so you can correct your decision.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
smovva1

ASKER
I did accept the solution. It works. I am new to this. Trying to accept it again.