Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

shell_command.h File Reference

Functions related with shell commands. More...

Go to the source code of this file.

Defines

Functions


Detailed Description

Functions related with shell commands.

This module defines the structure ShellCommand and contains functions which manipulate that structure or start a shell command.


Function Documentation

void shell_command_add_environment ShellCommand command,
const char *  attr,
const char *  value
 

Adds an environment variable.

Parameters:
command Shell command
attr Name of the variable
value Value

ShellCommand* shell_command_array_find Array array,
const char *  name
 

Searches an entry in an array of shell commands.

Parameters:
array GPtrArray of ShellCommands.
name Name to search for.
Returns:
First entry with matching name or NULL if no matching entry found.

void shell_command_destroy void *  data  ) 
 

Destroys a ShellCommand.

Parameters:
data Pointer to a ShellCommand.

int shell_command_execute ShellCommand command  ) 
 

Executes a shell command in the background.

Parameters:
command Pointer to a ShellCommand
Returns:
0 on success

void shell_command_set_attribute ShellCommand command,
const char *  attr,
const char *  value
 

Sets an attribute.

This function can be used to assign values to a ShellCommand structure. It is called from setup routines only.

Parameters:
command Pointer to a ShellCommand structure
attr Attribute's name (upper case)
value Attribute's value


Generated on Fri Jan 20 10:12:18 2006 by  doxygen 1.4.2