openharmony 鸿蒙 kernel-small-debug-shell-cmd-exec

2022-08-09 浏览 (755)

exec

Command Function

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

Syntax

exec <executable-file>

Parameters

Table 1 Parameter description

ParameterDescription
executable-fileSpecifies a valid executable file.

Usage Guidelines

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

Run exec helloworld.

Output

OHOS # exec helloworld
OHOS # hello world!

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

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Kernel

harmony 鸿蒙Kernel Coding Specification

harmony 鸿蒙Standard Libraries

harmony 鸿蒙Interrupt Management

harmony 鸿蒙Event

harmony 鸿蒙Mutex

harmony 鸿蒙Queue

harmony 鸿蒙Semaphore

harmony 鸿蒙Doubly Linked List

harmony 鸿蒙Memory Management

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/bd1f9cf340f84a6180bf6306a5018a49