Advertisement

06.04.2008 at 10:33AM PDT, ID: 23457600
[x]
Attachment Details

Script using Plink

Asked by gordonlee in SSH / Telnet Software, Linux, Linux Programming

Tags: ,

I need to create a plink script to login to my Linux box and copy a file. I can't seem to get this to work.

Here is what I have:

plink -ssh root@192.168.2.210 -pw PASSWORD mv -f /etc/resolv.conf.noint /etc/resolv.conf

But when I run it, I get the message:
mv: cannot stat `/etc/resolv.conf.noint': No such file or directory

If I run the command manually through and SSH connection, it works fine.Start Free Trial
[+][-]06.05.2008 at 06:38AM PDT, ID: 21719211

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 07:07AM PDT, ID: 21719543

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 07:35AM PDT, ID: 21719938

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SSH / Telnet Software, Linux, Linux Programming
Tags: Linux, Linux
Sign Up Now!
Solution Provided By: giltjr
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.05.2008 at 07:41AM PDT, ID: 21720021

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 01:08PM PDT, ID: 21723449

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628