aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-02-17 15:40:34 -0600
committerJP Dillingham <jp@dillingham.me>2025-02-17 15:40:34 -0600
commite1b3551c39224836eca93f8b8d12e082dae3b138 (patch)
tree565370d7a92367e48a93068545168fb409eea3e1 /config
parenta02d1dac559f11120092c669fb2924c8ff263b22 (diff)
downloadslskd-e1b3551c39224836eca93f8b8d12e082dae3b138.tar.gz
adjust script examples
Diffstat (limited to 'config')
-rw-r--r--config/slskd.example.yml15
1 files changed, 9 insertions, 6 deletions
diff --git a/config/slskd.example.yml b/config/slskd.example.yml
index ee5b6aaa..3b6cd78c 100644
--- a/config/slskd.example.yml
+++ b/config/slskd.example.yml
@@ -234,20 +234,23 @@
# retry:
# attempts: 3
# scripts:
-# my_post_download_script:
+# run_command_with_linux_system_shell: # slskd uses the executable defined in $SHELL
# on:
# - DownloadFileComplete
-# - DownloadDirectoryComplete
# 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
+# command: '"echo '$SLSKD_SCRIPT_DATA' >> slskd_downloads.txt"'
+# run_command_with_windows_system_shell: # slskd uses cmd.exe
+# on:
+# - DownloadFileComplete
+# run:
+# command: '"echo "%SLSKD_SCRIPT_DATA%" >> slskd_downloads.txt"'
# run_with_sh:
# on:
# - DownloadFileComplete
# run:
# executable: /bin/sh
-# command: '-c "echo $SLSKD_SCRIPT_DATA >> downloads.txt"'
-# run_with_windows:
+# args: '-c "echo $SLSKD_SCRIPT_DATA >> downloads.txt"'
+# run_with_windows_cmd:
# on:
# - DownloadFileComplete
# run: