pscp, more than one remote source not supported

0

Could someone tell me why this is giving the error please?

Copying from Windows to Unix.

C:\Windows>pscp.exe e:\onbase\outgoing\fa\file.txt user@server.utk.edu:/data/banint/DocMgmt/kbande/in/Fav/file.txt -pw password
More than one remote source not supported

Eventually I need:

C:\Windows>pscp.exe e:\onbase\outgoing\fa\*.txt user@server.utk.edu:/data/banint/DocMgmt/kbande/in/Fav/ -pw password

(i.e., with a *.txt wildcard in the source parameter and a directory name as the destination).  I can't even get a single file to copy. I do have two other scheduled tasks copying from Unix to the same Windows server using pscp and they work fine.

Why won't this work?

Jsmith

Posted 2017-04-25T20:24:45.727

Reputation: 1

Like nearly all commandline programs on both Windows and Unix, you need to put option arguments, in this case -pw passwd, BEFORE operand arguments, in this case the local and remote (or vice versa) filenames. – dave_thompson_085 – 2017-04-25T21:23:47.313

I had it that way originally, then it prompts me for the password after the command. – Jsmith – 2017-04-25T21:35:55.947

Did it say Access denied first and then prompt for password? If so the one you gave on the command line was sent but was rejected by the server. – dave_thompson_085 – 2017-04-26T01:37:15.620

No answers