Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: ExecuteCommand - Suspend/Resume on remote server

Please set Session.SessionLogPath and Session.DebugLogPath and attach both logs.
gauragarwal

ExecuteCommand - Suspend/Resume on remote server

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