GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — OpenHarmony/docs-en/kernel/exec.md at master · dashingcalico/OpenHarmony

Expand file tree

/

exec.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
51 lines (36 loc) · 2.48 KB
/

exec.md

Copy path

File metadata and controls

51 lines (36 loc) · 2.48 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

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.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.