aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/slskd.example.yml24
1 files changed, 20 insertions, 4 deletions
diff --git a/config/slskd.example.yml b/config/slskd.example.yml
index dd164084..ee5b6aaa 100644
--- a/config/slskd.example.yml
+++ b/config/slskd.example.yml
@@ -238,11 +238,27 @@
# on:
# - DownloadFileComplete
# - DownloadDirectoryComplete
-# run: data/my_script.sh --json-to-process $EVENT
-# my_logging_script:
+# run:
+# executable: ~ # if omitted, defaults to your operating system's $SHELL, or cmd.exe on Windows
+# command: data/my_script.sh # the script reads the data from the $SLSKD_SCRIPT_DATA envar
+# run_with_sh:
# on:
-# - All
-# run: data/log_slskd_events.sh $DATA
+# - DownloadFileComplete
+# run:
+# executable: /bin/sh
+# command: '-c "echo $SLSKD_SCRIPT_DATA >> downloads.txt"'
+# run_with_windows:
+# on:
+# - DownloadFileComplete
+# run:
+# executable: cmd.exe
+# command: '/c "echo %SLSKD_SCRIPT_DATA% >> downloads.txt"'
+# run_with_windows_git_bash:
+# on:
+# - DownloadFileComplete
+# run:
+# executable: C:\Program Files\Git\git-bash.exe
+# command: '-c "echo $SLSKD_SCRIPT_DATA >> downloads.txt"'
# ftp:
# enabled: false
# address: ~