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: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
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 1129 times

Number of guests: 1, registered members: 0, in total hidden: 0


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!