Files
marqdo-std-system/modules/process.mq.md
cflmy 053ddb0e59 migrate: own clock/datetime/env/process/random sources and baseline assertions
Move the official stdlib system modules to their unique source authority without
changing public std: paths or host authorization. Carry the pre-migration product
assertions into component cases captured from the baseline Bundle; the process
case resolves the granted program and expected stdout from the verified CLI.

Refs cflmy/marqdo#9, cflmy/marqdo-std-system#1
2026-11-26 23:30:25 +08:00

13 lines
420 B
Markdown

# @exec process
## 运行
`params(程序, 参数列表)`
在项目模式下运行一个显式授权的可执行文件。程序路径必须与
--allow-process PROGRAM 精确匹配;不经过 shell,清空环境变量,
工作目录是项目根,stdin 为空。5 秒超时、1 MiB stdout/stderr 上限,
结果形状为 {status, stdout, stderr}。
`return resource.request("process.run", [程序, 参数列表])`