A small script for executing arbitrary commands just by writing to a file.
dist | ||
src | ||
.gitmodules | ||
LICENSE | ||
README.md |
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"