Jump to content

Manual talk:BoxedCommand

Add topic
From mediawiki.org
Latest comment: 2 years ago by Cheellaz in topic How set environment variables

stdin

[edit]

Is it possible to pipe a PHP string directly to command's standard input, without using temporary files?
Alexander Mashin talk 05:46, 14 October 2021 (UTC)Reply

Yes, $command->stdin(...) should work. Legoktm (talk) 16:40, 14 October 2021 (UTC)Reply

How set environment variables

[edit]

I am new to MediaWiki and this extension, please be gentle :-)


I am using Mediawiki 1.39.4 and observes Errors in the log. Example:

[exec] Error running /bin/bash '.../mediawiki/vendor/wikimedia/shellbox/src/Command/limit.sh' ... ... python3: error while loading shared libraries: libpython3.8.so.1.0: cannot open shared object file: No such file or directory


The webserver I am using have libraries installed in a non-standard path. How do I set environment variables like `LD_LIBRARY_PATH` for my MediaWiki installation so ShellBox/BoxedCommand can find the libraries? Cheellaz (talk) 09:28, 18 September 2023 (UTC)Reply