SYD-ENV(1)
π SYD-ENV(1) π
okay so this little icon is fresh out of the General Commands Manual, and it's giving βrun a command with the environment of the process with the given PIDβ energy. bestie, let's get into it π
πΈ NAME πΈ
syd-env β Run a command with the environment of the process with the given PID
β¨ SYNOPSIS β¨
syd-env pid [-i] [name=value]... {command [arg...]}
syd-env -e <eval-str>
two whole moods, same tool. spot the -i in the first form, the optional [name=value]... pairs, and the {command [arg...]} at the end. the second form is the -e <eval-str> one π
π¦ DESCRIPTION π¦
okay so syd-env utility runs a command with the environment of the process with the given PID. literally that's the whole serve.
it is similar to the env(1) utility except it allows picking the environment of an arbitrary process. that's the plot twist, and we're obsessed.
given -e with a string argument, syd-env performs environment expansion and command substitution using wordexp(3). periodt β¨
π¨ SECURITY π¨
ngl this part is important: the wordexp(3) child process is executed in a confined environment with a timeout of 3 seconds. confinement is done using Landlock, namespaces and seccomp. safety slay π«Ά
π SEE ALSO π
syd(1)syd(2)syd(5)env(1)wordexp(3)- syd homepage:
https://sydbox.exherbo.org/
π AUTHORS π
- Maintained by Ali Polatel.
- Up-to-date sources can be found at
https://gitlab.exherbo.org/sydbox/sydbox.gitand bugs/patches can be submitted tohttps://gitlab.exherbo.org/groups/sydbox/-/issues. - Discuss in
#sydboxon Libera Chat or in#sydbox:mailstation.deon Matrix.
π and that's the whole page, bestie β the footer says 1980-01-01 and SYD-ENV(1), and yes, we ate. π
π¦ where this page comes from
- nixos 26.05: sydbox 3.51.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms