|
|
Question : Problem: Script using Plink
|
|
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 [email protected] -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.
|
Answer : Problem: Script using Plink
|
|
What/How does the file /etc/resolv.conf.noint get created? After you move it, it should no longer exists and you should expect this error.
|
|
|