|
yast2-core
|
#include <errno.h>#include <stdio.h>#include <string>#include <unistd.h>#include <sys/types.h>#include <sys/wait.h>#include "ycp/y2log.h"#include "ShellCommand.h"#include <y2util/ExternalProgram.h>Macros | |
| #define | y2log_component "bash" |
Functions | |
| int | shellcommand (const string &target_root, const string &command, const string &tempdir) |
| int | shellcommand_background (const string &target_root, const string &command) |
| #define y2log_component "bash" |
| int shellcommand | ( | const string & | target_root, |
| const string & | command, | ||
| const string & | tempdir | ||
| ) |
Execute shell command and feed its output to y2log
References ExternalProgram::renumber_fd(), y2debug, and y2error.
Referenced by shellcommand_background(), and shellcommand_output().
| int shellcommand_background | ( | const string & | target_root, |
| const string & | command | ||
| ) |
Execute shell command in background. That means start and forget about it!
References shellcommand(), and y2error.
1.8.6