• Home
Name Date Size #Lines LOC

..--

AppScope/12-May-2024-3633

entry/12-May-2024-931820

screenshots/device/12-May-2024-

.gitignoreD12-May-2024142 1111

README.mdD12-May-2024554 187

README_zh.mdD12-May-20241.3 KiB3318

build-profile.json5D12-May-20241 KiB4341

hvigorfile.tsD12-May-2024158 21

package.jsonD12-May-2024370 1818

README.md

1# eTS Process Information
2
3
4
5### Introduction
6
7This sample shows how to obtain process information and start a child process to run a shell script in Extended TypeScript (eTS). With this sample, you can obtain the running time, obtain and change the working directory of a process, send a signal to a specific process, start or close a child process, and exit the current process.
8
9### Usage
10
11Touch buttons on the home page of the sample app to try the corresponding functions.
12
13
14
15### Constraints
16
17This sample can only be run on standard-system devices.
18

README_zh.md

1# 进程信息
2
3### 介绍
4
5本示例使用[process](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-process.md)所提供获取进程相关信息的api接口,展示了在eTS中如何获取进程信息和启动一个子进程运行一段shell。
6
7使用说明:
8
9首页中展示了各个功能按钮,包括当前系统运行时间、获取进程当前工作目录、更改进程当前工作目录、发送signal到指定的进程、启动一个子进程、关闭子进程、退出当前系统的功能,点击相应的按钮完成该功能代码运行。
10
11### 效果预览
12
13|主页|
14|--------------------------------|
15|![main](screenshots/device/main.png)|
16
17### 相关权限
18
19不涉及。
20
21### 依赖
22
23不涉及。
24
25### 约束与限制
26
271.本示例支持标准系统上运行。
28
292.本示例仅支持API9版本SDK,版本号:3.2.7.6。
30
313.本示例需要使用DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100, built on November 3, 2022)才可编译运行。
32
334.本示例需要使用@ohos.process系统权限的系统接口。使用Full SDK时需要手动从镜像站点获取,并在DevEco Studio中替换,具体操作可参考[替换指南](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/full-sdk-switch-guide.md)