js-apis-application-shellCmdResult.md 807 字节
Newer Older
N
njupthan 已提交
1 2 3 4 5 6 7 8 9
# ShellCmdResult

> **说明**
>
> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。

## 导入模块

```js
N
njupthan 已提交
10
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
N
njupthan 已提交
11 12 13 14 15 16 17 18 19 20
```



## ShellCmdResult

Shell命令执行结果

| 名称      | 类型   | 可读 | 可写 | 说明                                                         |
| --------- | ------ | ---- | ---- | ------------------------------------------------------------ |
N
njupthan 已提交
21 22
| stdResult | string | 是   | 是   | 标准输出内容<br/>**系统能力:** SystemCapability.Ability.AbilityRuntime.Core |
| exitCode  | number | 是   | 是   | 结果码<br/>**系统能力:** SystemCapability.Ability.AbilityRuntime.Core |