Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2706617
cmd.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
554 B
Referenced Files
None
Subscribers
None
cmd.h
View Options
#ifndef cmd
#define cmd
#include
"cxx.h"
#include
<fstream>
#include
<string>
#include
<iostream>
#include
<cstring>
#include
<cstdlib>
#include
<unistd.h>
#include
<sys/types.h>
#include
<sys/wait.h>
using
namespace
rust
;
namespace
cmd
{
class
Runner
{
public
:
void
New
(
const
std
::
string
&
name
,
const
std
::
string
&
logPath
);
uint64_t
Run
(
const
std
::
string
&
command
);
~
Runner
();
private
:
int
stdout_fd
;
int
stderr_fd
;
};
}
uint64_t
run_command
(
Str
name
,
Str
log_path
,
Str
command
);
uint64_t
kill_pid
(
uint64_t
pid
);
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Feb 1, 11:31 AM (9 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
494554
Default Alt Text
cmd.h (554 B)
Attached To
Mode
rPMC Process Management Controller
Attached
Detach File
Event Timeline
Log In to Comment