ExitStatus Property

The exit code for the last executed command.

Syntax

ANSI (Cross Platform)
int GetExitStatus();

Unicode (Windows)
INT GetExitStatus();
@property (nonatomic,readonly,assign,getter=exitStatus) int exitStatus;
- (int)exitStatus;
#define PID_SEXEC_EXITSTATUS 4

IPWORKSSSH_EXTERNAL void* IPWORKSSSH_CALL IPWorksSSH_SExec_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);

Default Value

0

Remarks

After executing a command through Execute or by setting Command, the server will send a notification containing the ExitStatus of the command. The server may also send a textual representation of that code, which will be stored in ErrorMessage.

This property is read-only.

Data Type

Integer

Copyright (c) 2023 /n software inc. - All rights reserved.
IPWorks SSH 2020 C++ Edition - Version 20.0 [Build 8501]