Script Manager: run your own tasks
Menu → Setup → System → Script Manager runs shell scripts from /usr/script. Use it for tasks you have deliberately created, such as a simple system status check. It does not manage recording timers or create automatic schedules.

Add a simple example
Section titled “Add a simple example”Use SSH or SFTP to create /usr/script if necessary. Save a file named system-status.sh there containing:
#!/bin/shprintf 'System drive:\n'df -h /printf '\nMemory:\n'free -hThis example only reads storage and memory usage. Save files with Unix (LF) line endings. Use a clear filename without spaces; the reviewed manager splits filenames at spaces.
mkdir -p /usr/scriptchmod 755 /usr/script/system-status.shInspect the content with a text editor or cat /usr/script/system-status.sh first. Scripts run with Enigma2’s privileges, normally root on a receiver. Do not run an unfamiliar script based solely on its filename.
Buttons and execution
Section titled “Buttons and execution”- Open Script Manager. It reads the directory and sorts detected
.shentries alphabetically. - Select a script with Up/Down.
- Press OK or Green → Run, then confirm the prompt.
- Read the console output and errors. The console remains open after successful completion.
- Use Red / Back to leave the manager. Reopen it to discover newly transferred files if necessary.
The reviewed implementation sources the script in a shell using . /usr/script/FILE.sh. Use POSIX sh syntax for this example. A Bash shebang alone does not change this invocation into Bash. Run more complex programs through an appropriate small launcher script.
Troubleshooting
Section titled “Troubleshooting”| Problem | Check |
|---|---|
| Empty list | Is the file really in /usr/script, and does its name contain .sh? Reopen the menu. |
not found or unexpected syntax errors |
Use LF instead of Windows CRLF; check command availability and absolute file paths. |
| Works over SSH but not from the menu | Working directory, environment and PATH may differ. Use absolute paths. |
| A task never finishes | The script must terminate itself. Do not use an endless background loop as a menu action. |
For one-off or recurring Enigma2 tasks, use the scheduler; Linux commands can use Cron. Script Manager itself has no scheduling, repetition or wake-up settings.
