← 返回命令列表

Linux command

wpexec 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Run a Lua

wpexec [path/to/script.lua]

Run a script with arguments

wpexec [path/to/script.lua] [arg1] [arg2]

Show help

wpexec --help

说明

wpexec loads and runs a single WirePlumber Lua script in an isolated context. Unlike scripts that live in the /usr/share/wireplumber/scripts/ tree and are managed by the daemon, wpexec spins up its own connection to the running WirePlumber session, executes the script, and exits when the script finishes. The full WirePlumber Lua API is available, including the wp.Core, wp.ObjectManager, wp.Node, and wp.Link classes, so the tool is well suited to ad-hoc PipeWire queries, one-off graph manipulations, and testing snippets that may later be promoted into a managed script.

参数

-h, --help
Display help information and exit.

FAQ

What is the wpexec command used for?

wpexec loads and runs a single WirePlumber Lua script in an isolated context. Unlike scripts that live in the /usr/share/wireplumber/scripts/ tree and are managed by the daemon, wpexec spins up its own connection to the running WirePlumber session, executes the script, and exits when the script finishes. The full WirePlumber Lua API is available, including the wp.Core, wp.ObjectManager, wp.Node, and wp.Link classes, so the tool is well suited to ad-hoc PipeWire queries, one-off graph manipulations, and testing snippets that may later be promoted into a managed script.

How do I run a basic wpexec example?

Run `wpexec [path/to/script.lua]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -h, --help do in wpexec?

Display help information and exit.