EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SSH how to get exit code after executing a command?

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
Posted: 03/22/2013 10:23:44
by Michael Lovett (Standard support level)
Joined: 03/20/2013
Posts: 28

I'm looking at TEISimpleSSHClient class, specifically at ExecuteCommand().

I see that this method can return the command's stdout and stderr, but I don't see how to get the exit code of the command. Is this possible?

If not, is it possible using other methods, or other classes?

Posted: 03/22/2013 10:30:28
by Ken Ivanov (EldoS Corp.)

Hello Michael,

Please use the TElSimpleSSHClient's ExitStatus property to get the exit code.



Topic viewed 1216 times



Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!