From 992aea88fb0dbe240e3d4675fa595f0726009ed5 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 16 Feb 2025 17:36:47 -0600 Subject: add script examples --- config/slskd.example.yml | 24 ++++++++++++++++++++---- 1 file 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: ~ -- cgit v1.2.3