This shows you the differences between two versions of the page.
— |
bash:how_to:run_command [2024/02/16 01:04] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== bash: "How To" ... running commands ===== | ||
+ | ^operation^what^code^ | ||
+ | |execution|result of command execution|RSLT=$?| | ||
+ | |:::|being root|if ($(id -u) -eq 0))| | ||
+ | |:::|execute command in variable "__CMD__" \\ e.g. to programatically run same command \\ either on localhost or via added ssh prefix|__CMD__="command parameter ..." \\ eval $__CMD__| | ||
+ | //work in progress// |