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:

...

{set

...

the

...

path};if

...

sudo

...

-l

...

{command}>/dev/null;

...

then

...

sudo

...

{command};

...

else

...

{command};fi

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

 

 

This difference might be important because the The precise behaviour might be dependent on the user’s standard shell. ‘if’ is a shell command that can have slightly different behaviours behaviors on different shells.… it is a very simple use of ‘if’, so it probably won’t be a problem … (probably).

 

 

 

 

 

Info

...