Topic "ExecuteCommand - Suspend/Resume on remote server"

Author Message
gauragarwal
[View user's profile]

Joined: 2014-09-22
Posts: 6
Location: Australia
Hi,

ExecuteCommand (C#) returns below error when I suspend the Unix script (called in ExecuteCommand) on remote server using kill -SIGSTOP:

Error is WinSCP.SessionRemoteException: Terminated by user.
at WinSCP.SessionLogReader.Read(LogReadFlags flags)
at WinSCP.ElementLogReader.Read(LogReadFlags flags)
at WinSCP.SessionElementLogReader.Read(LogReadFlags flags)
at WinSCP.ElementLogReader.Read(LogReadFlags flags)
at WinSCP.ElementLogReader.ReadToEnd(LogReadFlags flags)
at WinSCP.Session.ExecuteCommand(String command)

Increasing Timeout did not help.

How can I keep the session open till I resume the script using kill -SIGCONT?

Thanks,

Gaurav
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Please set Session.SessionLogPath and Session.DebugLogPath and attach both logs.
_________________
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