aboutsummaryrefslogtreecommitdiffstats
path: root/config/slskd.example.yml
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-02-16 17:36:47 -0600
committerJP Dillingham <jp@dillingham.me>2025-02-16 17:36:47 -0600
commit992aea88fb0dbe240e3d4675fa595f0726009ed5 (patch)
tree79339ede91342e0c99470c8ecd42dfd32838e5c6 /config/slskd.example.yml
parentc91439be2900c2a9d3401592b3417b63a4a497b8 (diff)
downloadslskd-992aea88fb0dbe240e3d4675fa595f0726009ed5.tar.gz
add script examples
Diffstat (limited to 'config/slskd.example.yml')
-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: ~