1 Star 0 Fork 4.9K

bill / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
exec.md 2.71 KB
一键复制 编辑 原始数据 按行查看 历史
NEEN 提交于 2021-03-12 17:59 . !197 Docs Update version 1.0.1

exec

Command Function

This command is a built-in shell command used to execute user-space programs.

Syntax

exec <executable-file>

Parameter Description

Table 1 Parameters

Parameter

Description

Value Range

executable-file

Indicates a valid executable file.

N/A

Usage

Currently, this command supports only valid binary programs. The programs are successfully executed and then run in the background by default. However, the programs share the same device with the shell. As a result, the output of the programs and the shell may be interlaced.

Example

Enter exec helloworld.

Output

OHOS # exec helloworld
OHOS # hello world!

NOTE: After the executable file is executed, prompt OHOS # is printed first. The shell exec command is executed in the background, causing the prompt to be printed in advance.

1
https://gitee.com/ximeibaba/docs.git
git@gitee.com:ximeibaba/docs.git
ximeibaba
docs
docs
master

搜索帮助