| 51 | } |
| 52 | |
| 53 | int exec_command_with_input (const std::vector<std::string>& args, const char* p, size_t len) |
| 54 | { |
| 55 | Coprocess proc; |
| 56 | std::ostream* proc_stdin = proc.stdin_pipe(); |
| 57 | proc.spawn(args); |
| 58 | proc_stdin->write(p, len); |
| 59 | proc.close_stdin(); |
| 60 | return proc.wait(); |
| 61 | } |
| 62 | |
| 63 | std::string escape_shell_arg (const std::string& str) |
| 64 | { |
no test coverage detected