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: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#24252
Posted: 03/22/2013 10:23:44
by Michael Lovett (Standard support level)
Joined: 03/20/2013
Posts: 28

Hi
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?

Thanks!
Michael
#24253
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.

Reply

Statistics

Topic viewed 1155 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!