Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. From the UI navigate to Locations > Connections > SHH
  2. Change commandprefixcode to SUDO
  3. Change usecommandprefix to True

 

 

The actual command that is being run is as follow:

{Code}

{set the path};if sudo -l {command}>/dev/null; then sudo {command}; else {command};fi

{Code}

 

This difference might be important because the precise behaviour might be dependent on the user’s standard shell. ‘if’ is a shell command that can have slightly different behaviours on different shells.

… it is a very simple use of ‘if’, so it probably won’t be a problem … (probably).

 

 

 

 

 

Info

Filter by label (Content by label)
showLabelsfalse
max5
spacesCSKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "CSKB"
labelskb-how-to-article

...