From 9dd61e22167602c35c684941c6924d0c03ec344d Mon Sep 17 00:00:00 2001 From: Jari Sundell Date: Mon, 15 Jun 2026 10:19:33 +0900 Subject: [PATCH] Updated COMMAND Execute (markdown) --- COMMAND-Execute.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/COMMAND-Execute.md b/COMMAND-Execute.md index 6afc8b6..ab9525d 100644 --- a/COMMAND-Execute.md +++ b/COMMAND-Execute.md @@ -3,19 +3,19 @@ ## Syntax ``` -execute2={command,arg1,arg2,...} +execute={command,arg1,arg2,...} ``` -This will execute the external command with arguments arg1,arg2,.... It will throw an error if the exit status is not 0, and return 0 itself otherwise. +This will execute the external command with arguments arg1,arg2,.... It will throw an error if the exit status is not 0, and return 0 itself otherwise. ``` execute.nothrow={command,arg1,arg2,...} ``` -This will execute the external command with arguments arg1,arg2,.... It will return the return value of the command. +This will execute the external command with arguments arg1,arg2,.... It will return the return value of the command. ``` execute.capture={command,arg1,arg2,...} ``` -This will execute the external command with arguments arg1,arg2,.... It will throw an error if the exit status is not 0, and return the stdout output of the command otherwise. +This will execute the external command with arguments arg1,arg2,.... It will throw an error if the exit status is not 0, and return the stdout output of the command otherwise. ``` execute.capture_nothrow={command,arg1,arg2,...} @@ -27,5 +27,5 @@ This will execute the external command with arguments arg1,arg2,.... It will ret ### Get rtorrent to create a pid-file ``` # Creates a pid-file and writes it to /run/user/{user id}/rtorrent.pid -execute2 = {bash,-c,echo `ps -p "$\{1:-$$\}" -o ppid=` > /run/user/`id -u`/rtorrent.pid} -``` \ No newline at end of file +execute = {bash,-c,echo `ps -p "$\{1:-$$\}" -o ppid=` > /run/user/`id -u`/rtorrent.pid} +```