From e1b3551c39224836eca93f8b8d12e082dae3b138 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 17 Feb 2025 15:40:34 -0600 Subject: adjust script examples --- config/slskd.example.yml | 15 +++++++++------ 1 file 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: -- cgit v1.2.3