Skip to content

Actions (actions.c)

Larry Kollar edited this page Jun 4, 2016 · 4 revisions

Actions (actions.c)

  • system
    Opens a shell and executes the contents of the current entry as a shell command.
  • action
    Executes an external shell according to node content. It first checks the direct children, then the current node.
    If it contains an http:// URL, the command described in web_command is executed.
    If it contains an '@' character, the characters surrounding it are interpreted as an email address and the mail_command is executed.
    If the data starts with 'exec' the rest of the data is executed verbatim, with the output going to /dev/null.
  • web_command (string)
    The command executed when opening URLs. The detected URL replaces the * character.
  • mail_command (string)
    The command executed when sending email. The address replaces the * character.
  • address (string)
    The email address used as the parameter for mail_command.