KShellProcess Class Reference

[kdecore Index] [kdecore Hierarchy] [Headers]


A class derived from KProcess to start child processes through a shell More...

#include <kprocess.h>

Inherits: KProcess

Public Members


Detailed Description

This class is similar to KProcess The only difference is that KShellProcess runs

the specified executable through a UN*X shell so that standard shell mechanisms like

wildcard matching, use of pipes and environment variable expansion will work.

For example, you could run commands like the following through KShellProcess:

ls ~/HOME/ *.lyx | sort | uniq |wc -l

KShellProcess tries really hard to find a valid executable shell. Here is the

algorithm used for finding an executable shell:

+) Try to use executable pointed to by the "SHELL" environment variable

+) Try the executable pointed to by the "SHELL" environment variable with

whitespaces stripped off

+) "/bin/sh" as a last ressort.


KShellProcess(const char *shellname=NULL) [public]

Constructor

By specifying the name of a shell (like "/bin/bash") you can override the mechanism for finding a valid shell as described in the detailed description of this class.

bool start(RunMode runmode = NotifyOnExit, Communication comm = NoCommunication) [public virtual]

Starts up the process. -- For a detailed description have a look at the "start" member function and the detailed description of KProcess .


  • Author: Christian Czezakte e9025461@student.tuwien.ac.at
  • Documentation generated by tasin@cd1 on Die Nov 30 17:31:35 CET 1999
Kdoc