Topic "Cannot login over command line and get file - Log ?"

Author Message
pstein
[View user's profile]

Joined: 2006-10-18
Posts: 22
I want to do the following from the commandline:
login on a remote computer go to directory /aaa/bbb
and get a file ccc.log to the local directory D:\mydata\

I entered (ignore possible line wraps):

winscp myname:mypw@xxx.xxx.xxx.xxx /aaa/bbb /command "get ccc.log D:\mydata"

After I hit the RETURN button some text seems to be displayed for a couple of milliceconds until the command terminates and return to the command prompt.
- WITHOUT having finished the task

Why ?

Unfortunately I found no debug/error message like
"Password wrong"
or
"remote directory not found"
or
....

How do I find out why winscp does not start the file transfer? Is there a verbose debug / log output ?

What is the default port? 22 ?

When I perform the same task through GUI everything works fine.

Peter
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Run winscp.com from console (cmd.exe) to avoid the output disappear.
_________________
Martin Prikryl
pstein
[View user's profile]

Joined: 2006-10-18
Posts: 22
prikryl wrote:
Run winscp.com from console (cmd.exe) to avoid the output disappear.


I ALREADY called winscp from cmd.exe!

So are there any other tricks to let me see the errors?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
pstein wrote:
I ALREADY called winscp from cmd.exe!

So are there any other tricks to let me see the errors?

But have you called winscp.com? Not winscp.exe!
_________________
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