Scripting of WINSCP oder "Command-line" Version?

Advertisement

dab
Joined:
Posts:
2
Location:
Biel, Switzerland

Scripting of WINSCP oder "Command-line" Version?

I have to work with a scponly ssh-server, which works perfectly with WINSCP. But I have to do transfers from another application. How can I realize this???
First I thinked about use of pscp (beacause that some part of WINSCP is based on putty?) to do the transfers but i can't do "ls", "md" or "rm" with pscp and in WINSCP it works perfect!

Thanks for a short feedback.

Daniel

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

Re: Scripting of WINSCP oder "Command-line" Version?

I'm not sure, but maybe PLINK (another application from PuTTY package) might do the work, just redirect list of commands to it. Let me know, if it does not work.

Reply with quote

dab
Joined:
Posts:
2
Location:
Biel, Switzerland

Re: Scripting of WINSCP oder "Command-line" Version?

Thanks, plink is working almost perfectly.
Possible I'm to stupied to use the -m option (batch-mode) but this is real plink question and has no more to do with winscp so it's a bit OT. But feel free to quote me a line about the following error: If I try to use batch-mode and my textfile look like this(as easy example):
pwd
pwd

I get the following error:
invalid characters in scp command!
here:
pwd

When i have only one command line then it works fine ...

try using a wildcard to match this file/directory

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

Re: Scripting of WINSCP oder "Command-line" Version?

dab wrote:

I get the following error:
invalid characters in scp command!
here:
pwd
I've never used PLINK. But I would suggest you to check, whether you have UNIX-style end-of-line character (LF = 10) in your input file.

Reply with quote

Advertisement

You can post new topics in this forum