Topic "Scripting of WINSCP oder "Command-line" Version?"

Author Message
dab
[View user's profile]

Joined: 2002-12-18
Posts: 2
Location: Biel, Switzerland
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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
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.
_________________
Martin Prikryl
dab
[View user's profile]

Joined: 2002-12-18
Posts: 2
Location: Biel, Switzerland
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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
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.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License