srun


Description:

public int srun (string command = "help", FileStream output = stdout)

Run one or more newline separated commands.

The output of the commands will be printed to output. Running just 'help' will print the available commands. Commands accepted by this are identical to those augtool accepts.

Parameters:

command

one or more newline separated commands, default is 'help'

output

file to send output to, default is STDOUT

Returns:

the number of executed commands on success, -1 on failure, and -2 if a 'quit' command was encountered