evalShell: Evaluat UNIX shell commands

evalShellR Documentation

Evaluat UNIX shell commands

Description

This function is used to evaluate shell commands, passed to system. It is passed an XML node which contains the code and also has attributes that govern how it is evaluated and how the results are presented/displayed.

This function is exported so it is available to XSL code.

Usage

evalShell(node)

Arguments

node

the XML node containing the shell commands and attributes that control how it is evaluated and how the results are returned.

Value

A string (i.e. character vector of length 1).

Author(s)

Duncan Temple Lang

See Also

dynDoc system

Examples

  library(XML)
  node = newXMLNode("sh:code", "ls",
                     attrs = c(numLines = "10"),
                      namespaceDefinitions = c("sh" = "http://www.shell.org"))

  evalShell(node)

duncantl/XDynDocs documentation built on Jan. 4, 2024, 5:20 p.m.