• Home
Name Date Size #Lines LOC

..--

entry/12-May-2024-796746

screenshots/device/12-May-2024-

.gitignoreD12-May-2024121 88

README.mdD12-May-2024554 187

README_zh.mdD12-May-20241.1 KiB2714

build-profile.json5D12-May-20241 KiB4341

hvigorfile.jsD12-May-2024174 21

package.jsonD12-May-2024395 2019

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本示例展示了在eTS中如何获取进程信息和启动一个子进程运行一段shell,包括当前系统运行时间、获取进程当前工作目录、更改进程当前工作目录、发送signal到指定的进程、启动一个子进程、关闭子进程、退出当前系统的功能。实现效果如下:
6
7![main](screenshots/device/main.png)
8
9### 相关概念
10
11process:提供获取进程相关信息的api接口。
12
13### 相关权限
14
15不涉及。
16
17### 使用说明
18
19首页中展示了各个功能按钮,点击相应的按钮完成该功能代码运行。
20
21### 约束与限制
22
231.本示例支持标准系统上运行。
24
252.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。
26
273.本示例需要使用@ohos.process系统权限的系统接口。使用Full SDK时需要手动从镜像站点获取,并在DevEco Studio中替换,具体操作可参考[替换指南](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/full-sdk-switch-guide.md)