Today I've written a little bit of code that uses fork, wait and execvp directly. There's built in support for this kind of thing in std::process, however I'm not 100% sure which approach will be needed yet. We either need to beef up the command interface inside mod job or replace it with something that exists.
Key features to support:
[x] Basic execution
[x] Argument control (foo -b -bar --baz "more stuff")
[ ] Possible CString conversion function(s)
[x] Working directory control
[ ] Environment variable control (e.g. FOO=bar env) #27
Today I've written a little bit of code that uses
fork
,wait
andexecvp
directly. There's built in support for this kind of thing instd::process
, however I'm not 100% sure which approach will be needed yet. We either need to beef up the command interface insidemod job
or replace it with something that exists.Key features to support:
foo -b -bar --baz "more stuff"
)CString
conversion function(s)FOO=bar env
) #27$(FOO=1); echo $FOO
) #58, #27|
, and possibly|&
shorthand) #12, #27$?
,!
,&&
,||
) #25, #54&
,wait
, etc) #6[n]<
,[n]>>
,[n]>&
) #26exit
,cd
, etc) #24