A small script for executing arbitrary commands just by writing to a file.
Find a file
2025-01-30 22:11:03 +01:00
dist Initial commit 2025-01-30 22:06:33 +01:00
src Initial commit 2025-01-30 22:06:33 +01:00
.gitmodules Initial commit 2025-01-30 22:06:33 +01:00
LICENSE Initial commit 2025-01-30 22:06:33 +01:00
README.md Add "Why" section to README 2025-01-30 22:11:03 +01:00

jobrunner

... is a small script for executing arbitrary commands just by writing to a file.

Index

Security warning

This script allows executing arbitrary commands as the user which executes it, therefore allowing the potential remote execution of code, just by writing to a file. This is a security danger.

Why

I need it for my Stream Deck as Companion kills processes running longer than up to twenty seconds, which is bad when you want to launch a terminal or something.

I can workaround this behaviour by writing to the file this daemon creates, which causes the daemon to start the process and not Companion, therefore effectively disabling the timeout.

Installing

To install jobrunner, execute these commands:

git clone https://git.staropensource.de/JeremyStarTM/jobrunner.git "${HOME}/.jobrunner"
cd "${HOME}/.jobrunner"
git submodule update --init --recursive
./dist/scripts/mklink.sh

Updating

To update jobrunner, invoke:

cd "${HOME}/.jobrunner"
./dist/scripts/rmlink.sh
git pull
git submodule update --init --recursive
./dist/scripts/mklink.sh

Uninstalling

Execute these commands to uninstall jobrunner:

${HOME}/.jobrunner/dist/scripts/rmlink.sh
rm -rf "${HOME}/.jobrunner"