aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-03-02 22:10:01 -0600
committerGitHub <noreply@github.com>2025-03-02 22:10:01 -0600
commit07b0ea98eb2b5ef44b33754d7a3f7b098f6a8987 (patch)
tree33a42d72316b7d312c25c44a938554af1430a058 /config
parenta966dbd2e9d12b3bc6df63c9a3d58fbf074f2537 (diff)
parentbe824b6b4af939f3a07752adc51405bf71e44ff2 (diff)
downloadslskd-07b0ea98eb2b5ef44b33754d7a3f7b098f6a8987.tar.gz
Merge branch 'master' into patch-1
Diffstat (limited to 'config')
-rw-r--r--config/slskd.example.yml47
1 files changed, 41 insertions, 6 deletions
diff --git a/config/slskd.example.yml b/config/slskd.example.yml
index dd164084..e76af51c 100644
--- a/config/slskd.example.yml
+++ b/config/slskd.example.yml
@@ -234,15 +234,50 @@
# retry:
# attempts: 3
# scripts:
-# my_post_download_script:
+# run_command_with_linux_system_shell: # automatically uses the executable defined in $SHELL
# on:
# - DownloadFileComplete
-# - DownloadDirectoryComplete
-# run: data/my_script.sh --json-to-process $EVENT
-# my_logging_script:
+# run:
+# command: 'echo "$SLSKD_SCRIPT_DATA" >> linux_system_shell.txt'
+# run_with_sh:
# on:
-# - All
-# run: data/log_slskd_events.sh $DATA
+# - DownloadFileComplete
+# run:
+# executable: /bin/sh
+# args: '-c "echo $SLSKD_SCRIPT_DATA >> linux_sh.txt"'
+# run_with_sh_and_args_list:
+# on:
+# - DownloadFileComplete
+# run:
+# executable: /bin/sh
+# arglist:
+# - -c
+# - echo $SLSKD_SCRIPT_DATA >> linux_sh_and_args_list.txt
+# run_command_with_windows_system_shell: # automatically uses cmd.exe (included with all Windows installs)
+# on:
+# - DownloadFileComplete
+# run:
+# command: 'echo "%SLSKD_SCRIPT_DATA%" >> windows_system_shell.txt'
+# run_with_windows_cmd:
+# on:
+# - DownloadFileComplete
+# run:
+# executable: cmd.exe
+# args: '/c "echo "%SLSKD_SCRIPT_DATA%" >> windows_cmd.txt"'
+# run_with_windows_git_bash:
+# on:
+# - DownloadFileComplete
+# run:
+# executable: C:\Program Files\Git\bin\bash.exe
+# args: '-c "echo "$SLSKD_SCRIPT_DATA" >> windows_git_bash.txt"'
+# run_with_windows_cmd_and_args_list:
+# on:
+# - DownloadFileComplete
+# run:
+# executable: cmd.exe
+# arglist:
+# - /c
+# - 'echo "%SLSKD_SCRIPT_DATA%" >> windows_cmd_and_args_list.txt'
# ftp:
# enabled: false
# address: ~