Remote Commands

Remote commands are similar to local commands, but they will be executed on the remote connection.

To add a new remote command to the list, click on the "Add" Button.

Fields

  • Confirm : If Ásbrú should launch a confirmation dialog before executing the command. This is useful if your command has instructions that could remove data.
  • Command : The command to be executed. It can contain global variables in it.
  • Send <INTRO> at the end : Will send or not a \n at the end of the command string. Uncheck if your command requires you to type some extra information before sending the <Enter> key.
  • Description : The name that will be displayed in the pop up menu.
    • Description has a pattern that you can use to group common commands. The patterns is Group:Name (version 6.2+)
    • Descriptions with "no" group. Will be shown after all grouped commands.
    • If you omit giving a Description to your command, the command will become the description.
    • All commands are sorted alphabetically by Description.
  • Set Keybinding : Click in the field and type a key combination to assign a hot key to your command. This hot key will be available in a terminal (version 6.3+)

Execution

Example of the generated list of commands when you right click on the terminal and hover over the "Remote Commands" entry.

You will see all Bash commands grouped under the "Bash" group, followed by the "Git Commands" group and at the end you will see the list of all the commands that had no group.

If we select and execute the "List all" command, that has a global variable assigned in it, the command will be executed in the terminal (on the remote server), as shown in the next 2 images.