ExecuteCommand - Suspend/Resume on remote server

Advertisement

gauragarwal
Joined:
Posts:
6
Location:
Australia

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

Reply with quote

Advertisement

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

Re: ExecuteCommand - Suspend/Resume on remote server

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

Reply with quote

Advertisement

You can post new topics in this forum